You are here:

C++/creating resource file in Visual C++ 6.0


Would like to create a menu using the .rc file. Using Visual C++ 6.0.  Started a .rc file within a project.  Get a small folder at top left of text editor.  Right click on text editor and see ID= Resource Symbols and Resource Includes.  Chose Resource Symbols and entered resource name and value.  Included ,  'hMenu = CreateMenu();
LoadMenu(hInstance, "MENU1");' in code of .cpp file but not getting menu. Seeking your help.

winston morris , Thank you for your question.

Make sure that the resource file is the main one for your project. If you create a standalone RC file, no software will use it.

Also, note that all a menu is is a data structure; to make it be displayed, you have to associate the menu with a window.

David Spector


All Answers

Answers by Expert:

Ask Experts


David Spector


Highly knowledgeable in the C++ language, Visual C++ (MSVC), Windows API, documentation and other quality-assurance techniques, and debugging. Knowledgeable in MFC, COM, GUI design, and object-oriented design.


I have been a software engineer since 1965. I have been published. My specializations have been: biomedical programming, compiler implementation, and many kinds of Windows programming. I don't do Databases or other business-oriented stuff.

Windows?/DOS Developer's Journal, ACM SIGPLAN Notices, and Computer Science Press.

ICCP Systems Programming Certification
Master's degree equivalent in Computer Science

©2017 All rights reserved.