Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

programatically switch btwn 2 resource files

Status
Not open for further replies.

ahoodin7

Programmer
Jun 16, 2004
72
US
MSVC 6.0 Windows XP SP2 MFC Application.

I have two different .rc files that have duplicate resources in them. So I would like to use them both, but I would only like to include one in my project at a time....and I would like to do this programatically. I had thought to use the preprocessor, but have no Idea how.

How do I switch .rc files programatically?

ahoodin
 
Exclude your other resource file from the build. I don't think that it is possible to distinguish resources with the same "names" after they're built into the executable.

When you do it, do it right.
 
>Exclude your other resource file from the build. I don't >think that it is possible to distinguish resources with the >same "names" after they're built into the executable.
This is what I had already been doing. I found it kind of kludgy.

>When you do it, do it right.
Is this your signature or something directed at me?

ahoodin7
 
That was my signature :) This forum should really implement some distinguish between the main text, and the signature...

When you do it, do it right.
 
When you do it, do it right.

>This forum should really implement some distinguish between >the main text, and the signature.

Well since they don't, it is left as an excercise for the user or super user as it were.

VB Forums all seem to do it though.

:-o

ahoodin7


We do it nice, but we do it twice[/color green]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top