VC++ does provide longjmp()-based TRY and CATCH macros.
Regards,
James Youngman mbc...@hpc.ph.man.ac.uk
RA, SToMP group, Physics Dept, Manchester University (061) 232 9818
The trouble with the rat-race is that even if you win, you're still a rat.
--------------------------------------------------------------------------
The functions try, throw and catch are parts of the AT&T C++ 3.0 standard, and is
NOT supported by Microsoft Visual C++, nor by Borland C++. The only
MS-DOS/Windows based compiler with built in exception-handling is the Watcom
C/C++ 9.5 32-bit compiler.
Knut Magne Risvik | Norwegian Institute of Technology.
k...@stud.unit.no | Department of computer Science
>The functions try, throw and catch are parts of the AT&T C++ 3.0 standard, and is
>NOT supported by Microsoft Visual C++, nor by Borland C++. The only
>MS-DOS/Windows based compiler with built in exception-handling is the Watcom
>C/C++ 9.5 32-bit compiler.
>Knut Magne Risvik | Norwegian Institute of Technology.
>k...@stud.unit.no | Department of computer Science
The Windows NT system and compiler support 'structured exception handling'
with __try, __except, and __finally where __try { surrounds a block which
will pass an exception to the subsequent __except or __finally block.
These can be nested in a 'structured' way so that errors not dealt with on
one level are percolated upwards until a sufficiently smart exception
handler is found. I haven't tried this yet. We'll see.
--
Dick Wilmot
Editor, Independent RAID Report
(510) 938-7425
As far as I know, the only MSDOS/Windows based compiler supporting AT&T C++ 3.0 Exception handling is the Watcom C++ 32 9.5.
Regards.
Knut Magne Risvik | Norwegian Institute of Technology, Trondheim
k...@stud.unit.no | Department of Computer Science
: Does Symantec C++ implement try, throw, and catch?
Nope!! It does not support Exception handling. To the best of my knowledge
only Watcom v9.5 support EH within the language.
Glenn Jayaputera
--
> : Does Symantec C++ implement try, throw, and catch?
>
> Nope!! It does not support Exception handling. To the best of my knowledge
> only Watcom v9.5 support EH within the language.
>
Visual C++/NT does support SEH (try throw catch).
It does support them but in the form of MACROS... lookup
TRY() in the helpfile.