Re: #if in .rc file
- From: Joseph M. Newcomer <newcomer@xxxxxxxxxxxx>
- Date: Thu, 29 Jun 2006 12:45:41 -0400
The last I looked, the "preprocessor" for .rc files did not exist. There was a subset of
the C preprocessor functionality implemented as part of the resource compiler, but not as
a preprocessor, (for examples, macros in the .rc file cannot have parameters; it probably
doesn't implement the full #if logic, only #ifdef and #ifndef, etc.)
So I would not at all be surprised that #if defined() is not implemented. Why not use
#ifdef? And if you need more complex expressions, you may be out of luck.
joe
On Tue, 27 Jun 2006 10:54:17 -0500, "Eric Margheim" <NOSPAM***eric@xxxxxxxxxxxxx***NOSPAM>
wrote:
Can preprocessor directives be used in .rc files?Joseph M. Newcomer [MVP]
It's appearing to me they cannot. I am trying to do a conditional include
of resources in my app.rc file and it looks like it's including both parts
of the conditional.
#if defined (_DEFX)
#include "blah, blah"
#else
#include "yada, yada"
#endif
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.
- Follow-Ups:
- Re: #if in .rc file
- From: David Webber
- Re: #if in .rc file
- References:
- #if in .rc file
- From: Eric Margheim
- #if in .rc file
- Prev by Date: Re: Which messages should I delegate?
- Next by Date: Re: Avoiding Escape Sequence....
- Previous by thread: Re: #if in .rc file
- Next by thread: Re: #if in .rc file
- Index(es):
Relevant Pages
|