Will,
Open your target settings and go to the "C/C++ language" panel.
At the bottom of the panel there is a "Prefix File" field. Just enter
the name of header file.
For example, you can have two targets: "MyApp" and "MyAppDemo".
Create a file (for example) "demo.h" which contains:
#define DEMO 1
Enter "demo.h" (without quotes) in the "Prefix File" field in the
"MyAppDemo" target settings.
Regards
Bozidar
> Thanks Eric. Is there no way to just add the definitions
> themselves to the
> list of standard ones the compiler applies without involving the
> precomiled
> headers, as you can in VC++? I will go the pch route, just seems a little
> overkill ;-)
>
> Thaks again,
>
> Will
>
> -----Original Message-----
> From: Eric VERGNAUD [mailto:[EMAIL PROTECTED]]
> Sent: Friday, October 08, 1999 10:54 AM
> To: [EMAIL PROTECTED]
> Subject: Re : #defines in CW IDE targets
>
>
> In the C/C++ control panel, you can set a precompiled header to
> use for each
> target. You can create this precompiled header with a file like this:
>
> AddressBook.pch
>
> #pragma precompile_target "AddressHeaders"
>
> #define DEBUG 0
>
> #include "AddressHeaders.h"
>
> Add this file to your project, and set the precompiled header to
> AddressHeaders
>
> If you have 2 targets, like AddressBook and AddressBookDebug, use 2
> different .pch files:
>
> AddressBookDebug.pch
>
> #pragma precompile_target "AddressHeadersDebug"
>
> #define DEBUG 1
>
> #include "AddressHeaders.h"
>
> --
> Eric Vergnaud
>
> President of Street Soft
>
> ----------
> >DeE: "Meyer, Will" <[EMAIL PROTECTED]>
> >� : "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> >ObjetE: #defines in CW IDE targets
> >DateE: Ven 8 oct 1999 16:14
> >
>
> > Forgive the rather simplistic question, but where can you set
> > target-specific preprocessor definitions in the CW IDE? I'd
> like to have
> > certain things #defined for certain target settings (as in DEBUG and the
> > like). I am sure there is a way to do this in CW like in every
> other IDE,
> > just haven't found it. Can someone point me in the right direction?
> >
> > Best Regards,
> >
> > Will Meyer
> >
> >
>
>