#include "L.***\bcgcontrolbar.rc"// *** language, e.g. #include "L.FRA\bcgcontrolbar.rc"
How to translate the library resources to the new language?
Under your BCGControlBar Professional directory, create a new subdirectory called "L.***" where "***" is a language name prefix.
Copy the following files from the any other existing language directory:
bcgcbarres.cpp
bcgcbarres.dsp
bcgcbarres.dsw
Copy bcgcbarres.rc (English resources) from BCGControlBar Professional directory
In the Visual Studio, open bcgcbarres project
Remove resource version info
Change the DLL output file name to "..\..\bin\BCGCBRes***.dll" (*** - is a language name prefix)
Translate dialog, string and menu resources.
Build the project. Because bcgcbarres.rc has references to the common BCGControlBar Professional resources (bitmaps, icons and cursors), you'll be notified about creating a "RES" subdirectory. This is a Visual Studio resource editor problem - it doesn't interpret path obtained from the project settings in the correct way. Just answer yes and L.***\RES will be created. When the resource file is compiled (both static and DLL mode), the correct RES path (BCGCBPro dir\RES) will be taken. The language resources DLL will be placed into the BIN directory (same as BCGCB<ver>.DLL).