Click here to Skip to main content
15,887,175 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Get Default shell command Pin
Rozis11-Jul-09 23:20
Rozis11-Jul-09 23:20 
GeneralRe: Get Default shell command Pin
vikrant kpr13-Jul-09 1:24
vikrant kpr13-Jul-09 1:24 
QuestionShellExecute function? Pin
dipuks11-Jul-09 5:54
dipuks11-Jul-09 5:54 
AnswerRe: ShellExecute function? Pin
Stuart Dootson11-Jul-09 6:06
professionalStuart Dootson11-Jul-09 6:06 
QuestionMFC Exceptions Pin
rrrado11-Jul-09 5:22
rrrado11-Jul-09 5:22 
AnswerRe: MFC Exceptions Pin
Stuart Dootson11-Jul-09 5:36
professionalStuart Dootson11-Jul-09 5:36 
GeneralRe: MFC Exceptions Pin
rrrado11-Jul-09 6:23
rrrado11-Jul-09 6:23 
GeneralRe: MFC Exceptions Pin
Stuart Dootson11-Jul-09 7:20
professionalStuart Dootson11-Jul-09 7:20 
OK - here's a thought...

I'm presuming you're using CArray code in afxtempl.h. This calls AfxThrowInvalidArgException() to throw the exception you're seeing.

Why not use a #define to change what AfxThrowInvalidArgException means?

If we use this articles[^] code to provide a stackwalker, you could do something like this #define (put it in your code BEFORE you #include afxtempl.h)

#define AfxThrowInvalidArgException() { StackWalker sw; sw.ShowCallstack(); AfxThrowInvalidArgException(); }


You'd need to add something to change how the stack trace is displayed, and also distribute dbghelp.dll with your app, but I think it could help you?

Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

GeneralRe: MFC Exceptions Pin
rrrado11-Jul-09 8:05
rrrado11-Jul-09 8:05 
GeneralRe: MFC Exceptions Pin
rrrado11-Jul-09 9:34
rrrado11-Jul-09 9:34 
GeneralRe: MFC Exceptions Pin
Stuart Dootson11-Jul-09 9:43
professionalStuart Dootson11-Jul-09 9:43 
GeneralRe: MFC Exceptions Pin
Stuart Dootson11-Jul-09 10:02
professionalStuart Dootson11-Jul-09 10:02 
GeneralRe: MFC Exceptions Pin
rrrado11-Jul-09 19:31
rrrado11-Jul-09 19:31 
QuestionRegarding Created Date Pin
kirankatta11-Jul-09 4:48
kirankatta11-Jul-09 4:48 
AnswerRe: Regarding Created Date Pin
Pardhu_M11-Jul-09 5:23
Pardhu_M11-Jul-09 5:23 
QuestionCoversion of SYSTEMTIME TO FILETIME Pin
Pardhu_M11-Jul-09 2:26
Pardhu_M11-Jul-09 2:26 
AnswerRe: Coversion of SYSTEMTIME TO FILETIME Pin
Stuart Dootson11-Jul-09 2:57
professionalStuart Dootson11-Jul-09 2:57 
GeneralRe: Coversion of SYSTEMTIME TO FILETIME Pin
Pardhu_M11-Jul-09 3:39
Pardhu_M11-Jul-09 3:39 
GeneralRe: Coversion of SYSTEMTIME TO FILETIME Pin
Stuart Dootson11-Jul-09 3:59
professionalStuart Dootson11-Jul-09 3:59 
GeneralRe: Coversion of SYSTEMTIME TO FILETIME Pin
Pardhu_M11-Jul-09 5:19
Pardhu_M11-Jul-09 5:19 
QuestionClipboard [modified] Pin
samira forooghi11-Jul-09 1:42
samira forooghi11-Jul-09 1:42 
QuestionHow to Get the path of Internet Explorer using C++ Pin
tns_ranjith11-Jul-09 0:20
tns_ranjith11-Jul-09 0:20 
AnswerRe: How to Get the path of Internet Explorer using C++ Pin
Stuart Dootson11-Jul-09 1:00
professionalStuart Dootson11-Jul-09 1:00 
GeneralRe: How to Get the path of Internet Explorer using C++ Pin
tns_ranjith11-Jul-09 1:13
tns_ranjith11-Jul-09 1:13 
GeneralRe: How to Get the path of Internet Explorer using C++ Pin
Stuart Dootson11-Jul-09 1:19
professionalStuart Dootson11-Jul-09 1:19 

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.