Hi everybody,
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:
Code:
//{{NO_DEPENDENCIES}}
// Microsoft Developer Studio generated include file.
// Used by recource.rc
//
#define IDR_MENU1 101
// Next default values for new objects
//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 102
#define _APS_NEXT_COMMAND_VALUE 40001
#define _APS_NEXT_CONTROL_VALUE 1000
#define _APS_NEXT_SYMED_VALUE 101
#endif
#endif
And the most important parts in the script are:
Code:
#include "resource.h"
IDR_MENU1 MENU DISCARDABLE
BEGIN
MENUITEM "&File", 65535
END
I know, this doesn't close the application, but I wanted to see if the menu would show up at all.
I was under the assumption that I can make the menu visible by simple stating:
Code:
windowClass.lpszMenuName = MAKEINTRESOURCE("IDR_MENU1");
But..... This isn't the case.
What am I doing wrong here?
Any help is much appreciated.