Click here to Skip to main content
16,011,849 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: syntax error : 'catch' Pin
moredip23-Jul-02 7:10
moredip23-Jul-02 7:10 
GeneralRe: syntax error : 'catch' Pin
Joaquín M López Muñoz23-Jul-02 7:17
Joaquín M López Muñoz23-Jul-02 7:17 
GeneralRe: syntax error : 'catch' Pin
moredip23-Jul-02 7:27
moredip23-Jul-02 7:27 
GeneralRe: syntax error : 'catch' Pin
Joaquín M López Muñoz23-Jul-02 7:37
Joaquín M López Muñoz23-Jul-02 7:37 
GeneralRe: syntax error : 'catch' Pin
moredip23-Jul-02 7:48
moredip23-Jul-02 7:48 
GeneralRe: syntax error : 'catch' Pin
Joaquín M López Muñoz23-Jul-02 8:12
Joaquín M López Muñoz23-Jul-02 8:12 
GeneralRe: syntax error : 'catch' Pin
moredip23-Jul-02 8:14
moredip23-Jul-02 8:14 
GeneralRe: syntax error : 'catch' Pin
moredip23-Jul-02 8:41
moredip23-Jul-02 8:41 
I just noticed something. In the project settings command line options there is the following:

/D try=__try /D except=__except /D leave=__leave /D finally=__finally...

which I'm guessing redefines try to __try, etc.

Looking in MSDN, it seems that __try is a MS-specific extension for C. It also says:
"Note Structured exception handling works with Win32 for both C and C++ source files. However, it is not specifically designed for C++. You can ensure that your code is more portable by using C++ exception handling. Also, C++ exception handling is more flexible, in that it can handle exceptions of any type. For C++ programs, it is recommended that you use the new C++ exception-handling mechanism (try, catch, and throw statements). "

Maybe I'll try removing those lines in the project settings and see what happens...
GeneralRe: syntax error : 'catch' Pin
Joaquín M López Muñoz23-Jul-02 8:55
Joaquín M López Muñoz23-Jul-02 8:55 
GeneralRe: syntax error : 'catch' Pin
moredip23-Jul-02 9:24
moredip23-Jul-02 9:24 
GeneralRe: syntax error : 'catch' Pin
Joaquín M López Muñoz23-Jul-02 9:33
Joaquín M López Muñoz23-Jul-02 9:33 
GeneralRe: syntax error : 'catch' Pin
moredip23-Jul-02 9:34
moredip23-Jul-02 9:34 
GeneralGetWindowText Pin
RobJones23-Jul-02 6:41
RobJones23-Jul-02 6:41 
GeneralRe: GetWindowText Pin
Joaquín M López Muñoz23-Jul-02 7:33
Joaquín M López Muñoz23-Jul-02 7:33 
GeneralRe: GetWindowText Pin
Williams23-Jul-02 7:57
Williams23-Jul-02 7:57 
GeneralRe: GetWindowText Pin
RobJones23-Jul-02 8:06
RobJones23-Jul-02 8:06 
GeneralRe: GetWindowText Pin
Peter Occil23-Jul-02 10:07
Peter Occil23-Jul-02 10:07 
GeneralRe: GetWindowText Pin
firecow23-Jul-02 10:33
firecow23-Jul-02 10:33 
QuestionWhy "static" functions? Pin
#realJSOP23-Jul-02 6:33
professional#realJSOP23-Jul-02 6:33 
AnswerRe: Why "static" functions? Pin
Chris Losinger23-Jul-02 7:04
professionalChris Losinger23-Jul-02 7:04 
GeneralRe: Why "static" functions? Pin
#realJSOP23-Jul-02 7:35
professional#realJSOP23-Jul-02 7:35 
AnswerRe: Why "static" functions? Pin
Scott H. Settlemier23-Jul-02 7:09
Scott H. Settlemier23-Jul-02 7:09 
AnswerRe: Why "static" functions? Pin
Joaquín M López Muñoz23-Jul-02 7:26
Joaquín M López Muñoz23-Jul-02 7:26 
GeneralRe: Why "static" functions? Pin
Shog923-Jul-02 9:10
sitebuilderShog923-Jul-02 9:10 
GeneralRe: Why "static" functions? Pin
Joaquín M López Muñoz23-Jul-02 11:28
Joaquín M López Muñoz23-Jul-02 11:28 

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.