Click here to Skip to main content
15,896,201 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionBatch file problem Pin
Nandu_77b13-Jul-08 22:39
Nandu_77b13-Jul-08 22:39 
AnswerRe: Batch file problem Pin
Varghese Paul M13-Jul-08 23:21
Varghese Paul M13-Jul-08 23:21 
GeneralRe: Batch file problem Pin
Nandu_77b13-Jul-08 23:46
Nandu_77b13-Jul-08 23:46 
Questiontry catch question Pin
Dennis L13-Jul-08 22:30
Dennis L13-Jul-08 22:30 
AnswerRe: try catch question Pin
Atropus13-Jul-08 23:06
Atropus13-Jul-08 23:06 
AnswerRe: try catch question Pin
Matthew Faithfull14-Jul-08 0:25
Matthew Faithfull14-Jul-08 0:25 
GeneralRe: try catch question Pin
Stephen Hewitt14-Jul-08 14:52
Stephen Hewitt14-Jul-08 14:52 
GeneralRe: try catch question Pin
Matthew Faithfull15-Jul-08 0:33
Matthew Faithfull15-Jul-08 0:33 
I was recently looking into this because I've been implementing exception handling myself, as opposed to just using it, ( based on porting a VC6 OSS implementation). There's a set of matching rules that decide whether a particular catch handler matches a particular thrown exception. The more I looked into how to implement this the more complex I realised it is. Added to which the flags in the underlying Windows (and VC++ generated code ) exception information don't seem adequate to accurately differentiate between for example a reference to a type and a reference to a pointer type. On the basis that I could find no documentation on these rules, maybe they're buried in an appendix of the C++ spec somewhere, I determined to advise extreme caution when throwing anything other than a straight forward pointer. Plain pointers are clearly flagged in the built in data structures and can definitely be caught reliably. I need to do a good deal more investigation, and ideally get hold of the formal rules, to determine if VC++ does indeed generate enough information to fully implement them and whether MSs own exception system has any holes in this area which I strongly suspect it might. I have stuggled in the past to get catch handlers to match with anything other than very simple thrown types and now I think I know why.

"The secret of happiness is freedom, and the secret of freedom, courage."
Thucydides (B.C. 460-400)

QuestionHow to disable visual style to the whole project Pin
Atropus13-Jul-08 22:11
Atropus13-Jul-08 22:11 
AnswerRe: How to disable visual style to the whole project Pin
BadKarma13-Jul-08 23:06
BadKarma13-Jul-08 23:06 
GeneralRe: How to disable visual style to the whole project Pin
Atropus13-Jul-08 23:15
Atropus13-Jul-08 23:15 
AnswerRe: How to disable visual style to the whole project Pin
Naveen13-Jul-08 23:08
Naveen13-Jul-08 23:08 
GeneralRe: How to disable visual style to the whole project Pin
Atropus13-Jul-08 23:23
Atropus13-Jul-08 23:23 
GeneralRe: How to disable visual style to the whole project Pin
Naveen13-Jul-08 23:29
Naveen13-Jul-08 23:29 
GeneralRe: How to disable visual style to the whole project Pin
Atropus13-Jul-08 23:33
Atropus13-Jul-08 23:33 
Questionsending clist using writeprocessmemory Pin
Prasann Mayekar13-Jul-08 21:41
Prasann Mayekar13-Jul-08 21:41 
QuestionRe: sending clist using writeprocessmemory Pin
CPallini13-Jul-08 21:49
mveCPallini13-Jul-08 21:49 
AnswerRe: sending clist using writeprocessmemory Pin
Mark Salsbery14-Jul-08 6:25
Mark Salsbery14-Jul-08 6:25 
AnswerRe: sending clist using writeprocessmemory Pin
Stephen Hewitt14-Jul-08 14:55
Stephen Hewitt14-Jul-08 14:55 
Questionhow can i check whether the audio driver installed or not for my vc++ application? Pin
stewens13-Jul-08 20:11
stewens13-Jul-08 20:11 
AnswerRe: how can i check whether the audio driver installed or not for my vc++ application? Pin
Stephen Hewitt13-Jul-08 20:33
Stephen Hewitt13-Jul-08 20:33 
GeneralRe: how can i check whether the audio driver installed or not for my vc++ application? Pin
stewens13-Jul-08 22:09
stewens13-Jul-08 22:09 
Questionpopup dialog using tab controls Pin
ani_ikram13-Jul-08 20:09
ani_ikram13-Jul-08 20:09 
AnswerRe: popup dialog using tab controls Pin
sudhir_Kumar13-Jul-08 20:28
sudhir_Kumar13-Jul-08 20:28 
AnswerRe: popup dialog using tab controls Pin
SandipG 13-Jul-08 21:02
SandipG 13-Jul-08 21:02 

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.