I'm making a text editor(Yeah, I'm a n00b). I'm trying to add a save option in the menu, however DevC++ keeps whining about
some freakin' parse error.
This is part of the WinProc.
Code:
case WM_COMMAND:
{
switch(LOWORD(wParam))
{
case ID_FILE_EXIT:
{
DestroyWindow(hwnd);
}
break;
case ID_FILE_SAVE:
{
//save stuff here
}
break;
}
}
This is part of the resource
Code:
IDR_MYMENU MENU
BEGIN
POPUP "&File"
BEGIN
MENUITEM "E&xit", ID_FILE_EXIT
MENUITEM "S&ave", ID_FILE_SAVE
END
There's more stuff, of course, but that's the error part. I'm not sure about how to get the resource to work.