Click here to Skip to main content
15,888,286 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to change interpretation int - hex Pin
David Crow2-Jun-06 3:29
David Crow2-Jun-06 3:29 
AnswerRe: how to change interpretation int - hex Pin
Nibu babu thomas4-Jun-06 18:37
Nibu babu thomas4-Jun-06 18:37 
Questionwindows dialog Pin
iLL eFFect1-Jun-06 23:59
iLL eFFect1-Jun-06 23:59 
AnswerRe: windows dialog Pin
Maxwell Chen2-Jun-06 0:08
Maxwell Chen2-Jun-06 0:08 
GeneralRe: windows dialog Pin
Steen Krogsgaard2-Jun-06 0:09
Steen Krogsgaard2-Jun-06 0:09 
GeneralRe: windows dialog Pin
Maxwell Chen2-Jun-06 0:10
Maxwell Chen2-Jun-06 0:10 
AnswerRe: windows dialog Pin
Steen Krogsgaard2-Jun-06 0:08
Steen Krogsgaard2-Jun-06 0:08 
AnswerRe: windows dialog Pin
iLL eFFect4-Jun-06 20:05
iLL eFFect4-Jun-06 20:05 
Thanks for all ur support
I am looking for Win32 support.
and i am trying to use GetOpenFileName as suggeted by you all.
The my code snippet is:

<br />
OPENFILENAME ofn;       <br />
char szFile[260];<br />
HWND hwnd;<br />
HANDLE hf;<br />
<br />
ZeroMemory(&ofn, sizeof(ofn));<br />
ofn.lStructSize = sizeof(ofn);<br />
ofn.hwndOwner = hwnd;<br />
ofn.lpstrFile = (LPWSTR)szFile;<br />
ofn.lpstrFile[0] = '\0';<br />
<br />
ofn.nMaxFile = sizeof(szFile);<br />
ofn.lpstrFilter = (LPCWSTR)"All\0*.*\0Text\0*.TXT\0";<br />
ofn.nFilterIndex = 1;<br />
ofn.lpstrFileTitle = NULL;<br />
ofn.nMaxFileTitle = 0;<br />
ofn.lpstrInitialDir = NULL;<br />
ofn.Flags = OFN_PATHMUSTEXIST | OFN_FILEMUSTEXIST;<br />
<br />
DWORD err;<br />
if (GetSaveFileName (&ofn)==TRUE) <br />
{<br />
	hf = CreateFile(ofn.lpstrFile, GENERIC_READ,0,<br />
        (LPSECURITY_ATTRIBUTES) NULL,<br />
	OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL,(HANDLE) NULL);<br />
}<br />
else<br />
	err = CommDlgExtendedError();<br />
<br />


But i am returned with err = 0xFFFF .i.e.
CDERR_DIALOGFAILURE: The dialog box could not be created. The common dialog box function's call to the DialogBox function failed. For example, this error occurs if the common dialog box call specifies an invalid window handle.

Please help.
GeneralRe: windows dialog Pin
iLL eFFect2-Jun-06 0:46
iLL eFFect2-Jun-06 0:46 
GeneralRe: windows dialog Pin
Ștefan-Mihai MOGA2-Jun-06 2:18
professionalȘtefan-Mihai MOGA2-Jun-06 2:18 
GeneralRe: windows dialog Pin
Steen Krogsgaard2-Jun-06 2:22
Steen Krogsgaard2-Jun-06 2:22 
Questionc++.net using Acrobat Pin
Bassieeee1-Jun-06 23:58
Bassieeee1-Jun-06 23:58 
QuestionASSER - VERIFY [modified] Pin
big_denny_2001-Jun-06 23:49
big_denny_2001-Jun-06 23:49 
AnswerRe: ASSER - VERIFY [modified] Pin
Sarath C1-Jun-06 23:57
Sarath C1-Jun-06 23:57 
AnswerRe: ASSER - VERIFY [modified] Pin
Maxwell Chen1-Jun-06 23:57
Maxwell Chen1-Jun-06 23:57 
AnswerRe: ASSER - VERIFY [modified] Pin
Nibu babu thomas2-Jun-06 0:09
Nibu babu thomas2-Jun-06 0:09 
AnswerRe: ASSER - VERIFY [modified] Pin
toxcct2-Jun-06 0:26
toxcct2-Jun-06 0:26 
QuestionForm's Button not responding Pin
Y_Kaushik1-Jun-06 23:37
Y_Kaushik1-Jun-06 23:37 
AnswerRe: Form's Button not responding Pin
_anil_1-Jun-06 23:55
_anil_1-Jun-06 23:55 
QuestionDesktop COntext Menus Pin
Anil_vvs1-Jun-06 23:21
Anil_vvs1-Jun-06 23:21 
AnswerRe: Desktop COntext Menus Pin
Sarath C2-Jun-06 0:01
Sarath C2-Jun-06 0:01 
Questionright-aligned shortcuts in popup menu Pin
Dovgan Vitaliy1-Jun-06 23:12
Dovgan Vitaliy1-Jun-06 23:12 
AnswerRe: right-aligned shortcuts in popup menu Pin
toxcct1-Jun-06 23:14
toxcct1-Jun-06 23:14 
AnswerRe: right-aligned shortcuts in popup menu Pin
Viorel.1-Jun-06 23:29
Viorel.1-Jun-06 23:29 
GeneralRe: right-aligned shortcuts in popup menu Pin
Dovgan Vitaliy2-Jun-06 2:10
Dovgan Vitaliy2-Jun-06 2:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.