-
Menu problem
Im trying to add a menu to my simple text-editor,
The contents of the .rc file is:
Code:
#include "EEdit_res.h"
MainMenu MENU DISCARDABLE
{
POPUP "FILE"
{
MENUITEM "Open", MENU_FILE_ID_OPEN
}
}
and the conetents of the EEdit_res.h file is:
Code:
#define MENU_FILE_ID_OPEN 1000
When i try to compile I get the Error: "EEdit_res.h(1) : fatal error RC1004: unexpected end of file found"
What is wrong? :confused:
-
>>#define MENU_FILE_ID_OPEN 1000
Are there any charectors after "1000"?
After "1000" just press enter once so the cursor goes down a line.
See if that works.
-
Omg! That worked!
The world of (Visual) C++ is strange!:p
-
Horizontal line
One more thing... how can make a horizontal line in my menu?
-
>>One more thing... how can make a horizontal line in my menu?
You need to flag it as a SEPERATOR
For example..
Code:
#include "EEdit_res.h"
MainMenu MENU DISCARDABLE
{
POPUP "FILE"
{
MENUITEM "Open", MENU_FILE_ID_OPEN
MENUITEM SEPARATOR
MENUITEM "Close", MENU_FILE_ID_CLOSE
}
}
-