Click here to Skip to main content
15,913,941 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generaldot operator menu... Pin
Cam1-Apr-01 15:28
Cam1-Apr-01 15:28 
GeneralRe: dot operator menu... Pin
Christian Graus1-Apr-01 17:07
protectorChristian Graus1-Apr-01 17:07 
Generaltry / catch : not compiled && unreachable in release build. Pin
Matt Cooper1-Apr-01 14:54
Matt Cooper1-Apr-01 14:54 
GeneralRe: try / catch : not compiled && unreachable in release build. Pin
Tim Deveaux2-Apr-01 6:54
Tim Deveaux2-Apr-01 6:54 
GeneralRe: try / catch : Oops - fogot something... Pin
Tim Deveaux2-Apr-01 13:33
Tim Deveaux2-Apr-01 13:33 
GeneralRe: try / catch Pin
Matt Cooper2-Apr-01 19:54
Matt Cooper2-Apr-01 19:54 
GeneralRe: try / catch Pin
Tim Deveaux3-Apr-01 13:45
Tim Deveaux3-Apr-01 13:45 
GeneralRe: try / catch Pin
Matt Cooper4-Apr-01 18:27
Matt Cooper4-Apr-01 18:27 
Well, the strange behavior was all my own.. wish I could say it wasn't! Pretty fun bug... created a recursing exception.

In my quest to handle the (...) case better, I explored the _set_se_translator function which allows you handle win32 exceptions, such as access violations, etc., by translating them into a c++ exceptions and throwing it. Exceedingly handy because you can then handle both c++ exceptions and Win32 SE's at once without using the (...) at all. By using this approach, you can identify everything about the SE, just as if you were using the __try/__catch approach. Very nice!

The only drawback to all this is that the handler table is created per thread, so, if you use multiple threads, you have to make sure you install the handler as the first step in every thread. This becomes especially fun when your code is called by someone else's multiple threads. (luckily, _set_se_translator returns the previous translator, so it can be saved and restored prior to return.) Small price to pay...

Matt

Generaltwo q's..._T("What the heck?") and handling CString's as float's Pin
Cam1-Apr-01 13:22
Cam1-Apr-01 13:22 
GeneralRe: two q's..._T( Pin
Christian Graus1-Apr-01 13:52
protectorChristian Graus1-Apr-01 13:52 
GeneralRe: two q's..._T( Pin
Cam1-Apr-01 15:20
Cam1-Apr-01 15:20 
GeneralRe: two q's..._T( Pin
PJ Arends1-Apr-01 14:22
professionalPJ Arends1-Apr-01 14:22 
GeneralRe: two q's..._T( Pin
3-Apr-01 3:40
suss3-Apr-01 3:40 
GeneralExporting Constants from Vc Dll Pin
Sabith Mannadiar1-Apr-01 4:45
Sabith Mannadiar1-Apr-01 4:45 
GeneralRe: Exporting Constants from Vc Dll Pin
l a u r e n1-Apr-01 9:57
l a u r e n1-Apr-01 9:57 
QuestionHow to Associate ImageList 6 to ListView 6 in VC++ Pin
1-Apr-01 0:43
suss1-Apr-01 0:43 
AnswerRe: How to Associate ImageList 6 to ListView 6 in VC++ Pin
Brendan Tregear1-Apr-01 15:46
Brendan Tregear1-Apr-01 15:46 
Generalexec Pin
Starodubtsev Sergey1-Apr-01 0:15
Starodubtsev Sergey1-Apr-01 0:15 
GeneralRe: exec Pin
Mustafa Demirhan1-Apr-01 1:09
Mustafa Demirhan1-Apr-01 1:09 
GeneralStrange kind of class Pin
Ahmad31-Mar-01 22:21
Ahmad31-Mar-01 22:21 
GeneralRe: Strange kind of class Pin
l a u r e n31-Mar-01 23:04
l a u r e n31-Mar-01 23:04 
GeneralRe: Strange kind of class Pin
Ahmad31-Mar-01 23:13
Ahmad31-Mar-01 23:13 
GeneralRe: Strange kind of class Pin
markkuk1-Apr-01 23:27
markkuk1-Apr-01 23:27 
Generalominous message Pin
Ahmad31-Mar-01 22:20
Ahmad31-Mar-01 22:20 
GeneralRe: ominous message Pin
Anna-Jayne Metcalfe1-Apr-01 9:54
Anna-Jayne Metcalfe1-Apr-01 9:54 

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.