Click here to Skip to main content
15,899,679 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Application in a system tray Pin
ThatsAlok1-Jan-06 19:01
ThatsAlok1-Jan-06 19:01 
QuestionCustom Caption Bar Pin
Dave Regan31-Dec-05 7:33
Dave Regan31-Dec-05 7:33 
AnswerRe: Custom Caption Bar Pin
includeh101-Jan-06 1:14
includeh101-Jan-06 1:14 
GeneralRe: Custom Caption Bar Pin
Dave Regan1-Jan-06 2:34
Dave Regan1-Jan-06 2:34 
Questionsuggestions on Changing IP address, DNS, etc Pin
Mutty31-Dec-05 6:36
Mutty31-Dec-05 6:36 
AnswerRe: suggestions on Changing IP address, DNS, etc Pin
Sheng Jiang 蒋晟31-Dec-05 9:10
Sheng Jiang 蒋晟31-Dec-05 9:10 
GeneralRe: suggestions on Changing IP address, DNS, etc Pin
Mutty31-Dec-05 12:24
Mutty31-Dec-05 12:24 
QuestionCFileDialog question Pin
#realJSOP31-Dec-05 4:52
professional#realJSOP31-Dec-05 4:52 
Using VC6 on Win2K:

Given the following code:

DWORD dwFlags = OFN_HIDEREADONLY|OFN_OVERWRITEPROMPT|OFN_ENABLESIZING;
CString sFile = _T("");
CFileDialog dlg(TRUE, "rc", NULL, dwFlags, "Resource Files (*.rc)|*.rc||");
if (IDOK == dlg.DoModal())
{
    sFile = dlg.GetFolderPath();
}


The dialog displays, and allows me to select a file, but it asserts when I click OK.

The code is very simple and straightforward, but I get a debug assert in dlg.GetFolderPath() claiming the hwnd for the dialog is NULL. Can anyone tell me what I missed or did wrong?



------- sig starts

"I've heard some drivers saying, 'We're going too fast here...'. If you're not here to race, go the hell home - don't come here and grumble about going too fast. Why don't you tie a kerosene rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt

"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
AnswerRe: CFileDialog question Pin
Sheng Jiang 蒋晟31-Dec-05 6:11
Sheng Jiang 蒋晟31-Dec-05 6:11 
GeneralRe: CFileDialog question Pin
#realJSOP31-Dec-05 6:55
professional#realJSOP31-Dec-05 6:55 
GeneralRe: CFileDialog question Pin
Sheng Jiang 蒋晟31-Dec-05 7:00
Sheng Jiang 蒋晟31-Dec-05 7:00 
GeneralRe: CFileDialog question Pin
#realJSOP31-Dec-05 8:51
professional#realJSOP31-Dec-05 8:51 
GeneralRe: CFileDialog question Pin
Prakash Nadar31-Dec-05 17:00
Prakash Nadar31-Dec-05 17:00 
GeneralRe: CFileDialog question Pin
Michael Dunn31-Dec-05 19:12
sitebuilderMichael Dunn31-Dec-05 19:12 
GeneralRe: CFileDialog question Pin
Prakash Nadar31-Dec-05 19:30
Prakash Nadar31-Dec-05 19:30 
GeneralRe: CFileDialog question Pin
#realJSOP31-Dec-05 23:56
professional#realJSOP31-Dec-05 23:56 
GeneralRe: CFileDialog question Pin
Michael Dunn1-Jan-06 7:58
sitebuilderMichael Dunn1-Jan-06 7:58 
GeneralRe: CFileDialog question Pin
#realJSOP1-Jan-06 8:51
professional#realJSOP1-Jan-06 8:51 
QuestionStaticly linked MFC Pin
DavidR_r31-Dec-05 3:46
DavidR_r31-Dec-05 3:46 
AnswerRe: Staticly linked MFC Pin
Randor 31-Dec-05 4:15
professional Randor 31-Dec-05 4:15 
GeneralRe: Staticly linked MFC Pin
DavidR_r31-Dec-05 6:41
DavidR_r31-Dec-05 6:41 
QuestionIs there any arraylist available in C++??? Pin
Ming Luo31-Dec-05 3:39
Ming Luo31-Dec-05 3:39 
AnswerRe: Is there any arraylist available in C++??? Pin
Prakash Nadar31-Dec-05 3:59
Prakash Nadar31-Dec-05 3:59 
AnswerRe: Is there any arraylist available in C++??? Pin
markkuk31-Dec-05 13:21
markkuk31-Dec-05 13:21 
Questionhappy new year, everyone! Pin
includeh1031-Dec-05 1:47
includeh1031-Dec-05 1:47 

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.