I started with Visual C++ and stumbled upon a small problem.
I began with the tutorial which can be found here: Link.
This all works well. I'm getting my application with the text in the middle. Perfect.
Now I want a menu with an option to close the application. I created a menu with the resource editor in Visual C++. After that I got a header file and a script file.
The header file contains:
And the most important parts in the script are:
// Microsoft Developer Studio generated include file.
// Used by recource.rc
#define IDR_MENU1 101
// Next default values for new objects
#define _APS_NEXT_RESOURCE_VALUE 102
#define _APS_NEXT_COMMAND_VALUE 40001
#define _APS_NEXT_CONTROL_VALUE 1000
#define _APS_NEXT_SYMED_VALUE 101
I know, this doesn't close the application, but I wanted to see if the menu would show up at all.
IDR_MENU1 MENU DISCARDABLE
MENUITEM "&File", 65535
I was under the assumption that I can make the menu visible by simple stating:
But..... This isn't the case.
windowClass.lpszMenuName = MAKEINTRESOURCE("IDR_MENU1");
What am I doing wrong here?
Any help is much appreciated.