HOWTO: Integrate the Message Compiler into Developer Studio
ID: Q199405
|
The information in this article applies to:
-
Microsoft Visual Studio 97
-
Microsoft Visual C++, 32-bit Editions, version 6.0
SUMMARY
If the message compiler is not integrated in Developer Studio correctly it will ignore the modifications and overwrite the .rc1 file. The steps in the "More Information" section outline how to do this correctly by using the "Read only" symbol directives for an application that is not localized and uses English resources.
MORE INFORMATION
The following are the steps to integrate the message compiler in Developer Studio for a project. Assume that the name of the message file is Mymsg.mc and the include file is Mymsg.h:
- From the Project menu select Settings.
- Select the Custom Build tab.
- Select Build Commands and type mc $(InputPath).
- Select Output Files and type $(InputName).rc $(InputName).h msg0001.bin.
- Click OK.
- In the File View pane, right-click on the project name and select "Add Files to Project".
- Select the source message file, MyMsg.mc.
- From the View menu select Resource Includes. In the "Read only symbol Directives" box type #include "MyMsg.h".
- Click OK.
- Select Rebuild All.
Now the project will compile your message resources instead of bringing your message resources into your project as static data. The message resources can be viewed in file view, external dependencies and the source file for the messages (*.mc) will appear in the list of files for the project.
Additional query words:
Keywords : kbVC500 kbVC600 kbVisID100 kbVJ100 kbVJ110 kbVS97 kbDevStudio kbDSupport kbGrpDSTools
Version : WINDOWS:97; winnt:6.0
Platform : WINDOWS winnt
Issue type : kbhowto