That's how I would do it: first create a definitions file ('definitions.h') and declare some values
Code:
#define MY_FILE_OPEN 10
#define MY_FILE_CLOSE 11
Now create an .*rc resource file and declare the menu inside it
Code:
#include <windows.h>
#include "defintions.h"
menu MENU
BEGIN
POPUP "&File"
BEGIN
MENUITEM "&Open",MY_FILE_OPEN
MENUITEM "&Close",MY_FILE_CLOSE
END
END
As you can see the menuitems have an id previously declared in the definitions file. It isn't necessary to declare the definitions (you can do something like 'MENUITEM "&Open",10'), but using definitions will help you to not confusing.
Now add both files to your project and compile it. There shoudn't be any problem.
Niara