Click here to Skip to main content
15,916,462 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Mnemonic not working Pin
Try21-Mar-07 2:13
Try21-Mar-07 2:13 
AnswerRe: Mnemonic not working Pin
prasad_som21-Mar-07 3:10
prasad_som21-Mar-07 3:10 
GeneralRe: Mnemonic not working Pin
Try21-Mar-07 3:19
Try21-Mar-07 3:19 
QuestionRe: Mnemonic not working Pin
prasad_som21-Mar-07 3:29
prasad_som21-Mar-07 3:29 
Questiontry catch not working Pin
Bangerman21-Mar-07 1:10
Bangerman21-Mar-07 1:10 
AnswerRe: try catch not working Pin
Stephen Hewitt21-Mar-07 1:17
Stephen Hewitt21-Mar-07 1:17 
GeneralRe: try catch not working Pin
Bangerman21-Mar-07 1:23
Bangerman21-Mar-07 1:23 
GeneralRe: try catch not working - msvcrt80 Pin
Bangerman21-Mar-07 3:11
Bangerman21-Mar-07 3:11 
So I made the changes and it made no difference to the problem.
However, I managed to connect the debugger and what I've found is frightening.

The problem is ocurring because I'm passing an invalid parameter to
localtime_s but rather than reporting any error or throwing an exception it is directly calling:
_invoke_watson(pszExpression, pszFunction, pszFile, nLine, pReserved);

So msvcrt80.dll directly invokes DrWatson rather than throwing an error for you to catch.

Now looking at their code I can see that in order to catch invald parameters in my code I'm going to have to add an invalid parameter handler into it. This seems strange to me, surly rather than calling DrWatson, it should throw an exception or even return the error that the docs say it will return for an invalid value.


Hell I thought it was funny .....

GeneralRe: try catch not working - msvcrt80 Pin
Stephen Hewitt21-Mar-07 13:00
Stephen Hewitt21-Mar-07 13:00 
AnswerRe: try catch not working Pin
zoid ! 21-Mar-07 9:17
zoid ! 21-Mar-07 9:17 
QuestionRight to left language and copy and paste Pin
BadJerry21-Mar-07 0:38
BadJerry21-Mar-07 0:38 
QuestionAdding my application to Quick Launch Pin
velayudhan_raj20-Mar-07 23:57
velayudhan_raj20-Mar-07 23:57 
AnswerRe: Adding my application to Quick Launch [modified] Pin
KaЯl21-Mar-07 1:05
KaЯl21-Mar-07 1:05 
AnswerRe: Adding my application to Quick Launch Pin
Laxman Auti21-Mar-07 3:04
Laxman Auti21-Mar-07 3:04 
QuestionAfxGetWinApp() Pin
deeps_cute20-Mar-07 23:34
deeps_cute20-Mar-07 23:34 
AnswerRe: AfxGetWinApp() Pin
prasad_som20-Mar-07 23:37
prasad_som20-Mar-07 23:37 
AnswerRe: AfxGetWinApp() Pin
ThatsAlok21-Mar-07 19:52
ThatsAlok21-Mar-07 19:52 
QuestionUser Interface style problem Pin
ilgale20-Mar-07 23:14
ilgale20-Mar-07 23:14 
AnswerRe: User Interface style problem Pin
JudyL_MD21-Mar-07 1:49
JudyL_MD21-Mar-07 1:49 
QuestionAPIs or MFC class for working with FAT ? Pin
nguyenvodich20-Mar-07 22:36
nguyenvodich20-Mar-07 22:36 
AnswerRe: APIs or MFC class for working with FAT ? Pin
kakan21-Mar-07 1:17
professionalkakan21-Mar-07 1:17 
QuestionProblem handling CStatic mouse click [modified] Pin
Futterama20-Mar-07 22:31
Futterama20-Mar-07 22:31 
AnswerRe: Problem handling CStatic mouse click Pin
prasad_som20-Mar-07 22:51
prasad_som20-Mar-07 22:51 
GeneralRe: Problem handling CStatic mouse click Pin
Futterama20-Mar-07 23:19
Futterama20-Mar-07 23:19 
AnswerRe: Problem handling CStatic mouse click Pin
prasad_som20-Mar-07 23:34
prasad_som20-Mar-07 23:34 

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.