Simple Dialog Box Prob (resource)
i have "syntax error" in my resource, in CTEXT
Resource.rc
Code:
#include "Resource.h"
IDR_MYMENU MENU
BEGIN
POPUP "&File"
BEGIN
MENUITEM "&Open", 0, GRAYED
MENUITEM "E&xit", ID_FILE_EXIT
END
POPUP "&Stuff"
BEGIN
MENUITEM "&Dialog << Test", ID_DIALOG_RUN
END
END
IDD_ABOUT DIALOG DISCARDABLE 0, 0, 239, 66
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "My Dialog Box"
FONT 8, "MS Sans Serif"
BEGIN
DEFPUSHBUTTON "&OK",IDOK,174,18,50,14
PUSHBUTTON "&Cancel",IDCANCEL,174,35,50,14
GROUPBOX "About this program...", ID_BOUT
CTEXT "An example program showing how to use Dialog Boxes\r\n\r\nby theForger",IDC_STATIC,16,18,144,33
END
Resource.h
Code:
#ifndef _RESOURCE_H_
#define _RESOURCE_H_
#define IDR_MYMENU 1001
#define ID_FILE_EXIT 1002
#define ID_DIALOG_RUN 1004
#define IDD_ABOUT 1005
#define ID_BOUT 1003
#define ID_TEXT 1006
#endif