Re: ATLTRY error in vc++ 6 project during conversion to visual c++ 8
alanm <alanm@discussions.microsoft.com> wrote:
I am sorry if this is not the right forum, but I was advised to post
here from the directx discussion group. I am trying to compile a
directshow filter from a vc++ 6 project, but it has error messages
claiming syntax errrors in included files, from the atlmfc directory
in visual c++ 8.
1>Note: including file: C:\Program Files\Microsoft Visual Studio
8\VC\atlmfc\include\atlcomcli.h
1>C:\Program Files\Microsoft Visual Studio
8\VC\atlmfc\include\atlcomcli.h(941) : error C2059: syntax error :
'catch'
compiler command line as follows:
/D "try=__try"
'catch' is valid in a try block, but not in a __try block (the latter is
used with Structured Excepthion Handling). Do not redefine keywords.
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925