compile different source files with different exception handling 
Author Message
 compile different source files with different exception handling

Hello,

John Robbins book "Debugging Applications" in
chapter "Crash Handlers" mentions that ...

"Fortunately, you don't have to enable asynchronous
exceptions projectwideyou can compile different source
files with different exception handling and link them
together without problems"

I tried changing settings for a particular file using
Project Settings dialog...but the Source File Options edit
control is in read only mode.

How do I "compile different source files with different
exception handling".

Thanks,
Vikram



Mon, 05 Sep 2005 14:04:38 GMT  
 compile different source files with different exception handling
I myself found the reply by experimenting...

modify .dsp file to specify specific exception handling
for the specific file...for example...

SOURCE=.\GrungyTask.cpp

!IF  "$(CFG)" == "Test - Win32 Release"
# ADD CPP /EHa
!ELSEIF  "$(CFG)" == "Test - Win32 Debug"
!ENDIF

# End Source File
# Begin Source File

Vikram

Quote:
>-----Original Message-----
>Hello,

>John Robbins book "Debugging Applications" in
>chapter "Crash Handlers" mentions that ...

>"Fortunately, you don't have to enable asynchronous
>exceptions projectwideyou can compile different source
>files with different exception handling and link them
>together without problems"

>I tried changing settings for a particular file using
>Project Settings dialog...but the Source File Options
edit
>control is in read only mode.

>How do I "compile different source files with different
>exception handling".

>Thanks,
>Vikram
>.



Mon, 05 Sep 2005 17:40:55 GMT  
 compile different source files with different exception handling
I assume you're using the IDE based on the group you're posting in. You can
also set settings on a per file basis within the IDE. Just right-click on
the file and FileView and choose Settings.

Jeff


Quote:
> I myself found the reply by experimenting...

> modify .dsp file to specify specific exception handling
> for the specific file...for example...

> SOURCE=.\GrungyTask.cpp

> !IF  "$(CFG)" == "Test - Win32 Release"
> # ADD CPP /EHa
> !ELSEIF  "$(CFG)" == "Test - Win32 Debug"
> !ENDIF

> # End Source File
> # Begin Source File

> Vikram

> >-----Original Message-----
> >Hello,

> >John Robbins book "Debugging Applications" in
> >chapter "Crash Handlers" mentions that ...

> >"Fortunately, you don't have to enable asynchronous
> >exceptions projectwide—you can compile different source
> >files with different exception handling and link them
> >together without problems"

> >I tried changing settings for a particular file using
> >Project Settings dialog...but the Source File Options
> edit
> >control is in read only mode.

> >How do I "compile different source files with different
> >exception handling".

> >Thanks,
> >Vikram
> >.



Tue, 06 Sep 2005 01:36:43 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. For help: under different OS has different compile result

2. For help: different OS has different compile result

3. Globals in different files, different types, same names

4. Different resource files for different project settings???

5. Same EVC + Different PC's = arm exe DIFFERENT file size (iPAQ)

6. How to config IDE to compile file with different extension

7. Using a typedef from a different source file?

8. Different sizes of long int on different machines.

9. ATL7 / different OSs == different results

10. Different ODBC versions accept different parameters???

11. Different results of OpenSchema() with different drivers?

12. Why different run on different systems??

 

 
Powered by phpBB® Forum Software