Click here to Skip to main content
15,902,198 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Getting addresses...setjmp/longjmp Pin
_AnsHUMAN_ 14-Jun-10 19:03
_AnsHUMAN_ 14-Jun-10 19:03 
GeneralRe: Getting addresses...setjmp/longjmp Pin
Aescleal15-Jun-10 0:21
Aescleal15-Jun-10 0:21 
GeneralRe: Getting addresses...setjmp/longjmp Pin
_AnsHUMAN_ 15-Jun-10 1:51
_AnsHUMAN_ 15-Jun-10 1:51 
GeneralRe: Getting addresses...setjmp/longjmp Pin
Aescleal15-Jun-10 8:35
Aescleal15-Jun-10 8:35 
GeneralRe: Getting addresses...setjmp/longjmp Pin
norish14-Jun-10 9:17
norish14-Jun-10 9:17 
GeneralRe: Getting addresses...setjmp/longjmp Pin
Aescleal14-Jun-10 9:34
Aescleal14-Jun-10 9:34 
GeneralRe: Getting addresses...setjmp/longjmp Pin
norish14-Jun-10 10:07
norish14-Jun-10 10:07 
GeneralRe: Getting addresses...setjmp/longjmp Pin
Aescleal14-Jun-10 11:08
Aescleal14-Jun-10 11:08 
The Java style of exceptions was actually around a couple of years before Java first came out. Microsoft had an exception handling mechanism in MFC 1 and 2 that threw by pointer and caught by pointer requiring the caller to delete the exceptions. It also used setjmp and longjmp to transfer control despite all the problems with that. It's still there in MFC 19 years later (but uses real C++ exception handling these days).

The only reason I brought the point up was I didn't want another neophyte C++ programmer getting the idea that the correct way to throw and catch was some knackered old view of the world imposed by a second rate C++ compiler from 20 years ago. The poor souls have enough to cope with!

Cheers,

Ash
QuestionSendMessage and PostMessage Pin
Pryabu13-Jun-10 20:23
Pryabu13-Jun-10 20:23 
AnswerRe: SendMessage and PostMessage Pin
«_Superman_»13-Jun-10 20:27
professional«_Superman_»13-Jun-10 20:27 
GeneralRe: SendMessage and PostMessage Pin
Pryabu13-Jun-10 20:53
Pryabu13-Jun-10 20:53 
GeneralRe: SendMessage and PostMessage Pin
«_Superman_»13-Jun-10 20:57
professional«_Superman_»13-Jun-10 20:57 
GeneralRe: SendMessage and PostMessage Pin
Pryabu13-Jun-10 21:02
Pryabu13-Jun-10 21:02 
AnswerRe: SendMessage and PostMessage Pin
rp_suman13-Jun-10 20:33
rp_suman13-Jun-10 20:33 
AnswerRe: SendMessage and PostMessage Pin
KarstenK13-Jun-10 21:17
mveKarstenK13-Jun-10 21:17 
QuestionCustom Radio Control Pin
AbhiHcl13-Jun-10 19:22
AbhiHcl13-Jun-10 19:22 
AnswerRe: Custom Radio Control Pin
«_Superman_»13-Jun-10 19:38
professional«_Superman_»13-Jun-10 19:38 
AnswerRe: Custom Radio Control Pin
Niklas L13-Jun-10 20:28
Niklas L13-Jun-10 20:28 
GeneralRe: Custom Radio Control Pin
AbhiHcl13-Jun-10 21:21
AbhiHcl13-Jun-10 21:21 
GeneralRe: Custom Radio Control Pin
Niklas L14-Jun-10 3:00
Niklas L14-Jun-10 3:00 
GeneralRe: Custom Radio Control Pin
AbhiHcl14-Jun-10 19:29
AbhiHcl14-Jun-10 19:29 
QuestionHow to open a registry key that contains space? Pin
pubis13-Jun-10 8:45
pubis13-Jun-10 8:45 
AnswerRe: How to open a registry key that contains space? Pin
Niklas L13-Jun-10 9:05
Niklas L13-Jun-10 9:05 
GeneralRe: How to open a registry key that contains space? Pin
pubis13-Jun-10 9:59
pubis13-Jun-10 9:59 
AnswerRe: How to open a registry key that contains space? Pin
Aescleal13-Jun-10 9:19
Aescleal13-Jun-10 9: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.