Re: converting c++ exception handling into SEH



yogesh wrote:

ello, i have a problem with replacing c++ exception handling with
structured exception handling. How to replace the " catch(...) " in
c++ exception handling with, __except , a structured exception
handling.
If i write "#define catch(...) ----" ; then it doesn't take ' ... ' as
a string ; so, prompts an error.. error C2010: '.' : unexpected in
macro formal parameter list
what to be written in place of ' --- ' ; to be convert it into an
St.Ex.Handling.?

Why are you doing that? Standard C++ exception handling (try & catch) works
quite well under Linux these days.

Ian
.



Relevant Pages

  • COBOL and exceptions (was: Passing an invalid date to INTEGER-OF-DATE
    ... have invalid arguments but NO returned value was always "invalid" this was ... I know of NO vendor who has actually implemented the '02 Standard "common ... exception handling" specification. ... "validate" arguments for a number of other intrinsic functions and to determine ...
    (comp.lang.cobol)
  • Re: kern/99979: Get Ready for Kernel Module in C++
    ... Exception handling is required by the standard, ... other OSs that we laughed at and that we are laughing at), so weak PCI ... and OS X both of which I've written a PCI driver for) we require device ...
    (freebsd-hackers)
  • Re: Garbage collection
    ... clean up unneeded data structures before passing control along. ... I push for standardizing C nested exception handling every time ... I'd rather have standard nexted exception handling than GC. ...
    (comp.std.c)
  • Re: calling convention stdcalll and cdecl call
    ... it does make sense to destroy those inside the function. ... Also makes sense in terms of exception handling, ... because the arguments must be destructed by the caller. ... I believe this requirement in the standard will be the death-blow to Alf's ...
    (microsoft.public.vc.language)
  • Re: Unhandled exception - How to turn off!
    ... Ben Voigt wrote: ... to get that functionality. ... You have been supposed to do that since the C++ standard was created. ... Other than that, not using exception handling is IHMO stupid, you are ...
    (microsoft.public.vc.language)