Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Does VC++ support the C++ functions try, throw, and catch?

13 views
Skip to first unread message

bobh...@news.delphi.com

unread,
Oct 30, 1993, 4:18:38 PM10/30/93
to

It appears that Visual C++ does not support try, throw, and catch. How
can you guys call this a C++ compiler without those functions?!?!? One of
the most important advantages in using high level languages is the ability
of porting the code from one platform to another readily. When I ordered
this product I expected a C++ compiler. Without full C++ compatability,
this product is of no use to me. If you guys were going to leave
something unimplemented, I would have expected something other than these
functions. They are fundamental to C++.

James Youngman

unread,
Oct 30, 1993, 5:02:38 PM10/30/93
to

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.
--------------------------------------------------------------------------

Knut Magne Risvik

unread,
Oct 31, 1993, 9:07:05 AM10/31/93
to

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

bobh...@news.delphi.com

unread,
Oct 31, 1993, 10:37:46 AM10/31/93
to

Does Symantec C++ implement try, throw, and catch?

Dick Wilmot

unread,
Oct 31, 1993, 6:46:35 PM10/31/93
to
k...@stud.unit.no (Knut Magne Risvik) writes:

>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

Knut Magne Risvik

unread,
Nov 1, 1993, 4:56:36 AM11/1/93
to
In article <2b0m4a$i...@news.delphi.com>, bobh...@news.delphi.com (BOBH...@DELPHI.COM) writes:
|>
|> Does Symantec C++ implement try, throw, and catch?
|>

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

Glenn Jayaputera

unread,
Nov 2, 1993, 7:29:35 AM11/2/93
to
BOBH...@DELPHI.COM (bobh...@news.delphi.com) wrote:

: 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

--

Chuck.M...@elsegundoca.ncr.com

unread,
Nov 4, 1993, 9:29:51 PM11/4/93
to

> : 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).

Jan Drake

unread,
Nov 5, 1993, 3:46:52 PM11/5/93
to
In article <2aui6u$3...@news.delphi.com>, bobh...@news.delphi.com (BOBH...@DELPHI.COM) says:
>
>
>It appears that Visual C++ does not support try, throw, and catch. How
>can you guys call this a C++ compiler without those functions?!?!? One of

It does support them but in the form of MACROS... lookup

TRY() in the helpfile.

0 new messages