I have made a window that has message boxes, menus and dialogs, but can someone tell me what is wrong with this .rc code? It looks ok for me it gives me this error:
[Resource error] syntax error
on the line 3, the one that starts with style.
#include "resource.h" IDD_ABOUT DIALOG DISCARDABLE 0, 0, 239, 66 STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU CAPTION "What do you think of my program?" FONT 9, "MS Sans Serif" BEGIN DEFPUSHBUTTON "&Good",IDOK,174,18,50,14 PUSHBUTTON "&Bad",IDCANCEL,174,35,50,14 GROUPBOX "About this program...",IDC_STATIC,7,7,225,52 CTEXT "When you press good, \nthe program will create a text file \nand write in the name of the button \nthat you clicked", IDC_STATIC,16,18,144,33 END
I have the #defines for this in the resource.h below
#define IDC_STATIC -1 #define IDR_MYMENU 101 #define IDI_MYICON 102 #define IDD_ABOUT 103 #define ID_FILE_EXIT 40001 #define ID_STUFF_GO 40002 #define ID_ABOUT_US 40004 #define ID_HELP_ABOUT 40005