Headers common to .cpp and .rc files
- From: "David Webber" <dave@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 23 Apr 2008 14:51:16 +0100
My .rc files use definitions common to them and the .cpp files.
These definitions are in header files included by both.
However, it is convenient for these headers sometimes also to contain things like structure definitions and inline functions which are irrelevant to the rc files, and may cause problems for the rc compiler.
Now I could insert above the inclusions in the rc file
#define THIS_IS_AN_RC_FILE
and then within the headers put
#if !defined THIS_IS_AN_RC_FILE
// all the stuff I don't want the rc file to see
#endif
but it occurs to me that the rc compiler might automatically define something equivalent.
Does it?
Dave
--
David Webber
Author of 'Mozart the Music Processor'
http://www.mozart.co.uk
For discussion/support see
http://www.mozart.co.uk/mozartists/mailinglist.htm
.
- Follow-Ups:
- Re: Headers common to .cpp and .rc files
- From: Tom Serface
- Re: Headers common to .cpp and .rc files
- From: Alex Blekhman
- Re: Headers common to .cpp and .rc files
- Prev by Date: Re: C++ utility calling "delete this" fails with exception on 2008
- Next by Date: Re: Headers common to .cpp and .rc files
- Previous by thread: Hidden window
- Next by thread: Re: Headers common to .cpp and .rc files
- Index(es):
Relevant Pages
|