Click here to Skip to main content
15,884,099 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Pop Up loading message Pin
Aqueel27-Nov-06 22:28
Aqueel27-Nov-06 22:28 
QuestionAnother beginner Q Pin
Ray_mond27-Nov-06 7:29
Ray_mond27-Nov-06 7:29 
QuestionRe: Another beginner Q Pin
Maximilien27-Nov-06 7:33
Maximilien27-Nov-06 7:33 
AnswerRe: Another beginner Q Pin
Ray_mond27-Nov-06 10:22
Ray_mond27-Nov-06 10:22 
QuestionFOLDER ACCESS PERMISSION Pin
Killer327-Nov-06 6:15
Killer327-Nov-06 6:15 
AnswerRe: FOLDER ACCESS PERMISSION Pin
David Crow27-Nov-06 7:30
David Crow27-Nov-06 7:30 
AnswerRe: FOLDER ACCESS PERMISSION Pin
Mark Salsbery27-Nov-06 7:39
Mark Salsbery27-Nov-06 7:39 
QuestionCFileDialog Pin
Nyarlatotep27-Nov-06 6:01
Nyarlatotep27-Nov-06 6:01 
My application uses CFileDialog to select a file to work with.
It seems to work well (the file is selected and returned) but when I execute other part of the application, an exception occurs (always in the same instruction: a query execution)
No problems arise if CFileDialog DoModal is not called or even if it is called but no file is selected (cancel button)

First I've tried to understand the problem, compiling with the SDK and using even "#define _WIN32_WINNT 0x500" and using CFileDialog either on stack and heap, but with no results.

At the end I've used the GetOpenFileName() API but it doesn't solve.

const char *szFilter = "JPG images (*.jpg)|*.jpg||";

CFileDialog dlg( TRUE, "jpg", NULL, OFN_OVERWRITEPROMPT|OFN_HIDEREADONLY|OFN_PATHMUSTEXIST|OFN_FILEMUSTEXIST, szFilter, this );
if( dlg.DoModal() != IDOK )
{
return;
}

I use VC++ 6.0 SP6 with PDSK Feb 2003 on XP Professional SP2

Some tips ?
AnswerRe: CFileDialog Pin
BlitzPackage27-Nov-06 6:19
BlitzPackage27-Nov-06 6:19 
GeneralRe: CFileDialog Pin
Nyarlatotep27-Nov-06 6:55
Nyarlatotep27-Nov-06 6:55 
GeneralRe: CFileDialog Pin
Humberto27-Nov-06 8:17
Humberto27-Nov-06 8:17 
AnswerRe: CFileDialog Pin
cje27-Nov-06 7:22
cje27-Nov-06 7:22 
GeneralRe: CFileDialog Pin
Nyarlatotep27-Nov-06 7:29
Nyarlatotep27-Nov-06 7:29 
AnswerRe: CFileDialog Pin
Mark Salsbery27-Nov-06 7:23
Mark Salsbery27-Nov-06 7:23 
GeneralRe: CFileDialog Pin
Nyarlatotep27-Nov-06 7:33
Nyarlatotep27-Nov-06 7:33 
GeneralRe: CFileDialog Pin
Mark Salsbery27-Nov-06 7:43
Mark Salsbery27-Nov-06 7:43 
GeneralRe: CFileDialog Pin
Nyarlatotep27-Nov-06 7:51
Nyarlatotep27-Nov-06 7:51 
GeneralRe: CFileDialog Pin
Mark Salsbery27-Nov-06 7:58
Mark Salsbery27-Nov-06 7:58 
GeneralRe: CFileDialog Pin
Nyarlatotep27-Nov-06 8:10
Nyarlatotep27-Nov-06 8:10 
GeneralRe: CFileDialog Pin
Mark Salsbery27-Nov-06 8:15
Mark Salsbery27-Nov-06 8:15 
GeneralRe: CFileDialog Pin
Nyarlatotep27-Nov-06 8:24
Nyarlatotep27-Nov-06 8:24 
GeneralRe: CFileDialog Pin
Mark Salsbery27-Nov-06 8:41
Mark Salsbery27-Nov-06 8:41 
GeneralRe: CFileDialog Pin
Nyarlatotep27-Nov-06 8:49
Nyarlatotep27-Nov-06 8:49 
GeneralRe: CFileDialog Pin
Mark Salsbery27-Nov-06 8:53
Mark Salsbery27-Nov-06 8:53 
GeneralRe: CFileDialog Pin
Nyarlatotep27-Nov-06 8:56
Nyarlatotep27-Nov-06 8:56 

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.