How To Integrate the Message Compiler into Developer Studio (199405)



The information in this article applies to:

  • Microsoft Visual C++, 32-bit Enterprise Edition 6.0
  • Microsoft Visual C++, 32-bit Professional Edition 6.0
  • Microsoft Visual C++, 32-bit Learning Edition 6.0

This article was previously published under Q199405

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.

Modification Type:MinorLast Reviewed:7/1/2004
Keywords:kbDevStudio kbhowto KB199405