Re: Build Switching by NickP
NickP
Thu May 24 06:23:31 CDT 2007
I have extended my header files so I now have 3
resource.h decides which resource header to use by checking the precompile
constant.
This seems to work fine, but my issue remaining seems to be in my
mainresource.rc, it includes both resources as TEXTINCLUDE blocks, so I am
getting a CVT1100 duplicate resource error.
Confusing to say the least.
Nick.
"NickP" <a@a.com> wrote in message
news:OiveUsenHHA.668@TK2MSFTNGP05.phx.gbl...
> HI again,
>
> I am attempting to achieve this by including multiple resources in my
> application, so far I have...
>
> mainresource.rc
> resourceset1.rc
> resourceset2.rc
>
> both resource sets are included in mainresource.rc. mainresource.rc does
> not include any resources itself.
>
> resourceset1.rc uses resource.h, and resourceset2.rc uses resource1.h. So
> they both have their own resource header.
>
> My current problem is that mainresource.rc includes resource.h at the very
> top, regardless of the precompile switch, also both rc files are included
> as text includes below.
>
> Any ideas on where I go from here?
>
> Nick.
>
> "NickP" <a@a.com> wrote in message
> news:u$0Qo3dnHHA.668@TK2MSFTNGP05.phx.gbl...
>> Hi there,
>>
>> I have a VC application that I want to implement a switch for which
>> will change the name of the application, as well as several other
>> resource items.
>>
>> I implemented a pre-compile check within the .rc file for the version
>> information, but VC removes my check and replaces it for the section that
>> evaluated to true, for example...
>>
>> #define APP2
>>
>> #ifdef APP2
>> //version info block here for app 2
>> //the entire block gets replaced by the code within this section.
>> #else
>> //version info block here for app 1
>> #endif
>>
>> So my question is, how do I specify to use a different set of
>> resources for a specific compile switch?
>>
>> Many thanks in advance.
>>
>> Nick.
>>
>
>