Question : How to use the .rc file in my static libray instead of the .rc file in the main program ?

Hello,

    I have created a static library using the wizard in Visual Studio C++.  It has created a file called Panel.rc.  I also have a main program which has a file called TestPPC.rc.  If I put resources such as dialogs into Panel.rc (static library) , my functions in the static library can not use it.  I have to put it into to TestPPC.rc.   Since this static library will be used by 2 main programs, I want to put my resources in the Panel.rc, and use them in that library, not put them in each of the main programs.   How do I do that ?

Environment:
Visual Studio 2008
C++
Win32
Windows Mobile

Answer : How to use the .rc file in my static libray instead of the .rc file in the main program ?

There's no way to add resources to a static library, but you can create your rc file and instruct library users to #include it in their *.rc2 files. This is a standard trick. It is used, for instance, in Codejock xTreme Toolkit.
Random Solutions  
 
programming4us programming4us