Click here to Skip to main content
15,792,959 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: RegEnumValue() returns garbage value for DWORD and BINARY Datatype! Pin
Supriya Tonape21-Oct-08 2:26
Supriya Tonape21-Oct-08 2:26 
GeneralRe: RegEnumValue() returns garbage value for DWORD and BINARY Datatype! Pin
CPallini21-Oct-08 2:53
mveCPallini21-Oct-08 2:53 
QuestionUsing activex controls Pin
Rhett860616-Oct-08 11:45
Rhett860616-Oct-08 11:45 
Question_beginthread vs _beginthreadex -- FYI Pin
bulg16-Oct-08 11:34
bulg16-Oct-08 11:34 
AnswerRe: _beginthread vs _beginthreadex -- FYI Pin
Mark Salsbery16-Oct-08 11:44
Mark Salsbery16-Oct-08 11:44 
QuestionA Very Simple MFC Application Pin
BobInNJ16-Oct-08 8:57
BobInNJ16-Oct-08 8:57 
AnswerRe: A Very Simple MFC Application Pin
led mike16-Oct-08 9:08
led mike16-Oct-08 9:08 
GeneralRe: A Very Simple MFC Application Pin
BobInNJ16-Oct-08 10:54
BobInNJ16-Oct-08 10:54 
Mike,

Thank you for the response. The error message I get is in the form of a Error Box. The title
of the Box says Microsoft Visaul C++ Debug Library". It also has the line Debug Assertion Failed!. The box also has button on it for Abort, Retry and Ignore.

It gets to the statement:
if (!ProcessShellCommand (cmdInfo))

but it does not get to the statement:
m_pMainWnd->DragAcceptFiles ();

Therefore, I step into the routine ProcessShellCommand. Here is the call stack for the
program after it dies:
>	sdi1.exe!AfxMessageBox(unsigned int nIDPrompt=61700, unsigned int nType=0, unsigned int nIDHelp=4294967295)  Line 163 + 0x17 bytes	C++
 	sdi1.exe!CSingleDocTemplate::OpenDocumentFile(const wchar_t * lpszPathName=0x00000000, int bMakeVisible=1)  Line 113	C++
 	sdi1.exe!CDocManager::OnFileNew()  Line 848	C++
 	sdi1.exe!CWinApp::OnFileNew()  Line 22	C++
 	sdi1.exe!CWinApp::ProcessShellCommand(CCommandLineInfo & rCmdInfo={...})  Line 26	C++
 	sdi1.exe!MainApp::InitInstance()  Line 46 + 0xc bytes	C++
 	sdi1.exe!AfxWinMain(HINSTANCE__ * hInstance=0x00400000, HINSTANCE__ * hPrevInstance=0x00000000, wchar_t * lpCmdLine=0x00020908, int nCmdShow=1)  Line 37 + 0xd bytes	C++
 	sdi1.exe!wWinMain(HINSTANCE__ * hInstance=0x00400000, HINSTANCE__ * hPrevInstance=0x00000000, wchar_t * lpCmdLine=0x00020908, int nCmdShow=1)  Line 30	C++
 	sdi1.exe!__tmainCRTStartup()  Line 263 + 0x2c bytes	C
 	sdi1.exe!wWinMainCRTStartup()  Line 182	C
 	kernel32.dll!7c817067() 	
 	[Frames below may be incorrect and/or missing, no symbols loaded for kernel32.dll]	


Also, it would seem to me that this is a very simple MFC program and that for somebody who understands MFC should be able to tell me what is wrong off the top of his (or her) head. Maybe, I am wrong about this. My limited experience with MFC SDI programs is that they are full of unexpected surprises.

Thanks
Bob
AnswerRe: A Very Simple MFC Application Pin
Mark Salsbery16-Oct-08 9:30
Mark Salsbery16-Oct-08 9:30 
GeneralRe: A Very Simple MFC Application Pin
BobInNJ16-Oct-08 11:06
BobInNJ16-Oct-08 11:06 
GeneralRe: A Very Simple MFC Application Pin
Mark Salsbery16-Oct-08 11:19
Mark Salsbery16-Oct-08 11:19 
GeneralRe: A Very Simple MFC Application Pin
BobInNJ16-Oct-08 11:38
BobInNJ16-Oct-08 11:38 
GeneralRe: A Very Simple MFC Application Pin
Mark Salsbery16-Oct-08 11:42
Mark Salsbery16-Oct-08 11:42 
GeneralRe: A Very Simple MFC Application Pin
BobInNJ16-Oct-08 11:47
BobInNJ16-Oct-08 11:47 
GeneralRe: A Very Simple MFC Application Pin
Mark Salsbery16-Oct-08 11:53
Mark Salsbery16-Oct-08 11:53 
GeneralRe: A Very Simple MFC Application Pin
Mark Salsbery16-Oct-08 11:58
Mark Salsbery16-Oct-08 11:58 
GeneralRe: A Very Simple MFC Application Pin
led mike16-Oct-08 12:24
led mike16-Oct-08 12:24 
GeneralRe: A Very Simple MFC Application Pin
Mark Salsbery16-Oct-08 12:48
Mark Salsbery16-Oct-08 12:48 
GeneralRe: A Very Simple MFC Application Pin
BobInNJ16-Oct-08 12:26
BobInNJ16-Oct-08 12:26 
QuestionRe: A Very Simple MFC Application Pin
David Crow16-Oct-08 11:35
David Crow16-Oct-08 11:35 
AnswerRe: A Very Simple MFC Application Pin
BobInNJ16-Oct-08 11:42
BobInNJ16-Oct-08 11:42 
QuestionRe: A Very Simple MFC Application Pin
David Crow16-Oct-08 11:45
David Crow16-Oct-08 11:45 
AnswerRe: A Very Simple MFC Application Pin
BobInNJ16-Oct-08 11:48
BobInNJ16-Oct-08 11:48 
GeneralRe: A Very Simple MFC Application Pin
David Crow16-Oct-08 11:52
David Crow16-Oct-08 11:52 
GeneralRe: A Very Simple MFC Application Pin
BobInNJ16-Oct-08 12:20
BobInNJ16-Oct-08 12:20 

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.