Renaming the Symbol Include header File

Each time the Origin Dialog AppWizard and Visual C++ create a new project they name the Symbol include header file Resource.h (the Symbol include header file contains all resource IDs for your dialog, tabs, pages, and controls). To avoid confusion with other same named header files in the Code Builder Workspace (should you have more than one resource-only DLL) it is a good idea to rename the Symbol include header file. To rename the Symbol include header file follow the steps below:

#define IDD_MYDIALOG                  100

#define IDC_PAGE_PLACEHOLDER          2000

#define IDD_FIRSTPAGE                 3000

#define IDD_SECONDPAGE                3001

#define IDD_MYDIALOG             100

#define IDC_TAB_PLACEHOLDER      1000

#define IDD_FIRSTTAB             3000

#define IDD_SECONDTAB            3001

#define IDD_MYDIALOG           100
#include "afxres.h"

(with quotes) for Read-only symbol directives. If not empty, clear Compile-time directives. Click OK twice to close the Resource Includes and informational dialog box.

Renaming the Symbol Include header File ResourceIncludes.png


#define _APS_NEXT_RESOURCE_VALUE 100

#define _APS_NEXT_RESOURCE_VALUE 101

The following drop-down image links show what a typical Symbol include header file for a simple dialog, a tabbed dialog, and a wizard should look like after the steps above have been completed.

Renaming the Symbol Include header File image121.gif Renaming the Symbol Include header File image119.gif Renaming the Symbol Include header File image118.gif