Click here to Skip to main content
15,907,326 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Application Container for several dialog based applications Pin
Sridhar Sanikommu26-May-06 7:18
Sridhar Sanikommu26-May-06 7:18 
QuestionDataGridView custom sorting question Pin
garidanxii25-May-06 9:25
garidanxii25-May-06 9:25 
QuestionClistbox Pin
celllllllll25-May-06 7:31
celllllllll25-May-06 7:31 
AnswerRe: Clistbox Pin
Hamid_RT25-May-06 7:56
Hamid_RT25-May-06 7:56 
GeneralRe: Clistbox Pin
celllllllll25-May-06 10:11
celllllllll25-May-06 10:11 
GeneralRe: Clistbox Pin
David Crow25-May-06 10:20
David Crow25-May-06 10:20 
GeneralRe: Clistbox Pin
celllllllll25-May-06 11:36
celllllllll25-May-06 11:36 
QuestionFileDialogs problem in VS 2005 Pin
CodeGoose25-May-06 7:06
CodeGoose25-May-06 7:06 
I've recently converted my VS6 project to 2005 and the problem I'm now getting is that my open/save dialogs aren't opening at all. ie) I have a file import dialog that was working, but is now not being displayed at all. My class is derived from CFileDialog. The section of code this seems to be failing in is:
in dlgfile.cpp
CFileDialog::DoModal()
{
...
INT_PTR nResult;
if (m_bOpenFileDialog) (true)
nResult = ::AfxCtxGetOpenFileName(&m_ofn);
...
}

from this nResult is 0. from there is returns a IDCANCEL due to nResult being 0.
I can step into this call, where it goes to:
OPENFILENAME& CFileDialog::GetOFN()
{
return *m_pOFN;
}

m_pOFN seems to be a valid structure, although most of the data seems to be defaults with some empty pointers.

Anyone have any thoughts on what might cause this to return false/0?
I can't seem to find any documentation on AfxCtxGetOpenFileName ().
Thanks for your help.
QuestionExcecute Key and + Key Pin
see me25-May-06 7:05
see me25-May-06 7:05 
QuestionRe: Excecute Key and + Key Pin
David Crow25-May-06 8:17
David Crow25-May-06 8:17 
AnswerRe: Excecute Key and + Key Pin
ThatsAlok25-May-06 19:17
ThatsAlok25-May-06 19:17 
QuestionHow to verify the data when the focus leaves [modified] Pin
willbin25-May-06 6:06
willbin25-May-06 6:06 
QuestionRe: How can I verify the data when the focus leaves Pin
David Crow25-May-06 6:51
David Crow25-May-06 6:51 
AnswerRe: How can I verify the data when the focus leaves Pin
willbin25-May-06 15:18
willbin25-May-06 15:18 
GeneralRe: How can I verify the data when the focus leaves Pin
Ryan Binns25-May-06 18:52
Ryan Binns25-May-06 18:52 
GeneralRe: How can I verify the data when the focus leaves Pin
willbin25-May-06 22:16
willbin25-May-06 22:16 
GeneralRe: How can I verify the data when the focus leaves Pin
David Crow26-May-06 2:32
David Crow26-May-06 2:32 
QuestionInsert Button into Another App's Window Pin
tuckmeng25-May-06 5:48
tuckmeng25-May-06 5:48 
QuestionHow to create a vitual driver ? Pin
bengoan25-May-06 5:47
bengoan25-May-06 5:47 
QuestionText color in Win32 program Pin
LiYS25-May-06 4:35
LiYS25-May-06 4:35 
AnswerRe: Text color in Win32 program Pin
Hamid_RT25-May-06 5:06
Hamid_RT25-May-06 5:06 
AnswerRe: Text color in Win32 program Pin
Ryan Binns25-May-06 18:53
Ryan Binns25-May-06 18:53 
QuestionSetButtonInfo parameter Pin
Abhi Lahare25-May-06 4:33
Abhi Lahare25-May-06 4:33 
Questionstrange compiler's error Pin
NoName II25-May-06 3:59
NoName II25-May-06 3:59 
AnswerRe: strange compiler's error Pin
Chris Losinger25-May-06 4:01
professionalChris Losinger25-May-06 4:01 

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.