Microsoft KB Archive/99391

= INFO: Converting an RC File to Use Microsoft Foundation Classes =

Article ID: 99391

Article Last Modified on 12/8/2003

-

APPLIES TO


 * Microsoft Visual C++ 1.0 Professional Edition
 * Microsoft Visual C++ 1.5 Professional Edition
 * Microsoft Visual C++ 1.0 Professional Edition
 * Microsoft Visual C++ 2.0 Professional Edition
 * Microsoft Visual C++ 4.0 Standard Edition
 * Microsoft Visual C++ 5.0 Standard Edition
 * Microsoft Visual C++ 6.0 Service Pack 5

-



This article was previously published under Q99391





SUMMARY
In App Studio (or Developer Studio in Visual C++ version 4.0 and later), the ClassWizard button on the toolbar and the ClassWizard menu option are disabled if the currently loaded RC file is not enabled for the Microsoft Foundation Classes. App Studio creates an RC file that is not enabled when it converts an old-style RC file to an App Studio RC file or when the user removes the selection from the &quot;Use Microsoft Foundation Classes&quot; option when creating an RC file in App Studio.

In addition, an RC file that is not enabled for the Microsoft Foundation Classes cannot contain any VBX controls.



MORE INFORMATION
To convert an RC file that is not enabled for the Microsoft Foundation Classes to one that is enabled, perform the following five steps:

 Load the RC file into App Studio. For Visual C++ for Windows or Visual C++, 32-bit Edition, versions 1.0 and 2.0, choose Set Includes from the File menu. For Visual C++, 32-bit Editions, version 4.0 and later, choose Resource Includes from the View menu.  In the Read-Only Symbol Directives window, replace the following lines: #define APSTUDIO_HIDDEN_SYMBOLS #include &quot;windows.h&quot; #undef APSTUDIO_HIDDEN_SYMBOLS with: #include &quot;afxres.h&quot;  Save the RC file and close it. Load the RC file into App Studio or Developer Studio.

The Resource Script is now enabled for Microsoft Foundation Classes.

Keywords: kbinfo KB99391

-

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

© Microsoft Corporation. All rights reserved.