Wednesday, February 20, 2008

STEPS TO CREATE A RESOURCE:

STEPS TO CREATE A RESOURCE:

Select the option INSERT from the menu bar. From the menu that is displayed choose the
Option RESOURCE .The INSERT RESOURCE dialog box is displayed.

Select the option MENU and click on OK button.

Then a grey bar is displayed with a small portion highlighted, Right click on that portion
And enter the caption and ID for tat menu item

Repeat the same process till the menu items are created.

Click on the FILE and choose SAVE AS option, and save the file as script.rc file and
Resource.h gets created automatically.

NOTE: This Resource.h is a header file, which has all the definitions of all the resources.
SCRIPT.RC file requires this file to compile itself.

Include the SCRIPT.RC file into our project by clicking on the option PROJECT, and
Then choose ADD TO PROJECT option then choose FILES, select the script file which
Is supposed to be inserted into the project.

No comments: