Microsoft KB Archive/199405

= How To Integrate the Message Compiler into Developer Studio =

Article ID: 199405

Article Last Modified on 7/1/2004

-

APPLIES TO


 * Microsoft Visual C++ 6.0 Enterprise Edition
 * Microsoft Visual C++ 6.0 Professional Edition
 * Microsoft Visual C++ 6.0 Standard Edition

-



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.

Keywords: kbhowto kbdevstudio KB199405

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.