Click here to Skip to main content
15,911,707 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: RegEnumValue() returns garbage value for DWORD and BINARY Datatype! Pin
Supriya Tonape21-Oct-08 1:26
Supriya Tonape21-Oct-08 1:26 
GeneralRe: RegEnumValue() returns garbage value for DWORD and BINARY Datatype! Pin
CPallini21-Oct-08 1:53
mveCPallini21-Oct-08 1:53 
QuestionUsing activex controls Pin
Rhett860616-Oct-08 10:45
Rhett860616-Oct-08 10:45 
Question_beginthread vs _beginthreadex -- FYI Pin
bulg16-Oct-08 10:34
bulg16-Oct-08 10:34 
AnswerRe: _beginthread vs _beginthreadex -- FYI Pin
Mark Salsbery16-Oct-08 10:44
Mark Salsbery16-Oct-08 10:44 
QuestionA Very Simple MFC Application Pin
BobInNJ16-Oct-08 7:57
BobInNJ16-Oct-08 7:57 
AnswerRe: A Very Simple MFC Application Pin
led mike16-Oct-08 8:08
led mike16-Oct-08 8:08 
GeneralRe: A Very Simple MFC Application Pin
BobInNJ16-Oct-08 9:54
BobInNJ16-Oct-08 9: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 8:30
Mark Salsbery16-Oct-08 8:30 
GeneralRe: A Very Simple MFC Application Pin
BobInNJ16-Oct-08 10:06
BobInNJ16-Oct-08 10:06 
GeneralRe: A Very Simple MFC Application Pin
Mark Salsbery16-Oct-08 10:19
Mark Salsbery16-Oct-08 10:19 
GeneralRe: A Very Simple MFC Application Pin
BobInNJ16-Oct-08 10:38
BobInNJ16-Oct-08 10:38 
GeneralRe: A Very Simple MFC Application Pin
Mark Salsbery16-Oct-08 10:42
Mark Salsbery16-Oct-08 10:42 
GeneralRe: A Very Simple MFC Application Pin
BobInNJ16-Oct-08 10:47
BobInNJ16-Oct-08 10:47 
GeneralRe: A Very Simple MFC Application Pin
Mark Salsbery16-Oct-08 10:53
Mark Salsbery16-Oct-08 10:53 
GeneralRe: A Very Simple MFC Application Pin
Mark Salsbery16-Oct-08 10:58
Mark Salsbery16-Oct-08 10:58 
GeneralRe: A Very Simple MFC Application Pin
led mike16-Oct-08 11:24
led mike16-Oct-08 11:24 
GeneralRe: A Very Simple MFC Application Pin
Mark Salsbery16-Oct-08 11:48
Mark Salsbery16-Oct-08 11:48 
GeneralRe: A Very Simple MFC Application Pin
BobInNJ16-Oct-08 11:26
BobInNJ16-Oct-08 11:26 
QuestionRe: A Very Simple MFC Application Pin
David Crow16-Oct-08 10:35
David Crow16-Oct-08 10:35 
AnswerRe: A Very Simple MFC Application Pin
BobInNJ16-Oct-08 10:42
BobInNJ16-Oct-08 10:42 
QuestionRe: A Very Simple MFC Application Pin
David Crow16-Oct-08 10:45
David Crow16-Oct-08 10:45 
AnswerRe: A Very Simple MFC Application Pin
BobInNJ16-Oct-08 10:48
BobInNJ16-Oct-08 10:48 
GeneralRe: A Very Simple MFC Application Pin
David Crow16-Oct-08 10:52
David Crow16-Oct-08 10:52 
GeneralRe: A Very Simple MFC Application Pin
BobInNJ16-Oct-08 11:20
BobInNJ16-Oct-08 11: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.