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:

  1. From the Project menu select Settings.


  2. Select the Custom Build tab.


  3. Select Build Commands and type mc $(InputPath).


  4. Select Output Files and type $(InputName).rc $(InputName).h msg0001.bin.


  5. Click OK.


  6. In the File View pane, right-click on the project name and select "Add Files to Project".


  7. Select the source message file, MyMsg.mc.


  8. From the View menu select Resource Includes. In the "Read only symbol Directives" box type #include "MyMsg.h".


  9. Click OK.


  10. 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


Last Reviewed: September 23, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.