Click here to Skip to main content
15,902,114 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: help with WM_KEYDOWN Pin
Nelek13-Jun-07 7:36
protectorNelek13-Jun-07 7:36 
QuestionVC++ Pin
srinivasa phani kiran12-Jun-07 21:47
srinivasa phani kiran12-Jun-07 21:47 
AnswerRe: VC++ Pin
Naveen12-Jun-07 21:57
Naveen12-Jun-07 21:57 
AnswerRe: VC++ Pin
Nelek12-Jun-07 23:25
protectorNelek12-Jun-07 23:25 
QuestionGDI & Image Processing Pin
KienNT7812-Jun-07 21:05
KienNT7812-Jun-07 21:05 
AnswerRe: GDI & Image Processing Pin
CPallini12-Jun-07 21:23
mveCPallini12-Jun-07 21:23 
AnswerRe: GDI & Image Processing Pin
Nelek12-Jun-07 23:22
protectorNelek12-Jun-07 23:22 
Questionproblem in file open dialog box Pin
trioum12-Jun-07 20:57
trioum12-Jun-07 20:57 
hi, I am using the fillowing code to open the file .
but dialog box could not appear .tell me where is problem


OPENFILENAME ofn; // common dialog box structure
char szFile[260]; // buffer for file name
HWND hwnd; // owner window
HANDLE hf; // file handle
ZeroMemory(&ofn, sizeof(OPENFILENAME));
ofn.lStructSize = sizeof(OPENFILENAME);
ofn.hwndOwner =(HWND)NULL;
ofn.lpstrFile = szFile;
ofn.nMaxFile = sizeof(szFile);
ofn.lpstrFilter = "All\0*.*\0Text\0*.TXT\0";;
ofn.nFilterIndex = 1;
ofn.lpstrFileTitle = NULL;
ofn.nMaxFileTitle = 0;
ofn.lpstrInitialDir = NULL;
ofn.Flags = OFN_PATHMUSTEXIST | OFN_FILEMUSTEXIST;
if (GetOpenFileName(&ofn)==TRUE)
hf = CreateFile(ofn.lpstrFile, GENERIC_READ,0, (LPSECURITY_ATTRIBUTES) NULL,OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL,(HANDLE) NULL);
MessageBox(NULL,TEXT("Press load Button"),TEXT("DEBUG"),NULL);

Trioum
AnswerRe: problem in file open dialog box Pin
Hamid_RT12-Jun-07 21:30
Hamid_RT12-Jun-07 21:30 
AnswerRe: problem in file open dialog box Pin
trioum13-Jun-07 1:26
trioum13-Jun-07 1:26 
GeneralRe: problem in file open dialog box Pin
Hamid_RT13-Jun-07 3:34
Hamid_RT13-Jun-07 3:34 
QuestionUsing OpenGL Text Output with DIB Section Pin
beko12-Jun-07 20:37
beko12-Jun-07 20:37 
QuestionNeWbie Rook Programmer! Pin
brandonsjo12-Jun-07 20:36
brandonsjo12-Jun-07 20:36 
AnswerRe: NeWbie Rook Programmer! Pin
Hamid_RT12-Jun-07 21:30
Hamid_RT12-Jun-07 21:30 
AnswerRe: NeWbie Rook Programmer! Pin
Nelek12-Jun-07 23:18
protectorNelek12-Jun-07 23:18 
QuestionCDialog Pin
Bravoone_200612-Jun-07 20:29
Bravoone_200612-Jun-07 20:29 
AnswerRe: CDialog Pin
Hans Dietrich12-Jun-07 20:54
mentorHans Dietrich12-Jun-07 20:54 
QuestionRe: CDialog Pin
Bravoone_200612-Jun-07 21:40
Bravoone_200612-Jun-07 21:40 
AnswerRe: CDialog Pin
Nelek12-Jun-07 23:15
protectorNelek12-Jun-07 23:15 
AnswerRe: CDialog Pin
David Crow13-Jun-07 3:38
David Crow13-Jun-07 3:38 
QuestionHow to enable menuitem... Pin
artihcv12-Jun-07 19:56
artihcv12-Jun-07 19:56 
AnswerRe: How to enable menuitem... Pin
Hamid_RT12-Jun-07 20:04
Hamid_RT12-Jun-07 20:04 
QuestionUnix to Windows client server application Pin
C#Coudou12-Jun-07 19:55
C#Coudou12-Jun-07 19:55 
QuestionExpression help Pin
amitmistry_petlad 12-Jun-07 19:47
amitmistry_petlad 12-Jun-07 19:47 
AnswerRe: Expression help Pin
Naveen12-Jun-07 20:04
Naveen12-Jun-07 20:04 

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.