Hi, I'm just going through theForger's tutorial for win32 API, and have got to the bit about dialog boxes. I've added this code to my resource file:
But when I compile the .rc using windres from the MinGW package it comes up with a parse error at the GROUPBOX line, and then when I comment that out there's another one at the CTEXT line. When both are commented out it will compile and run and produce the dialog, but obviously I need to be able to display text and such.Code:IDD_ABOUT DIALOG DISCARDABLE 0, 0, 239, 66 STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU CAPTION "My About 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...",IDC_STATIC,7,7,225,52 CTEXT "An example program showing how to use Dialog Boxes\r\n\r\nby theForger", IDC_STATIC,16,18,144,33 END
Can anyone tell me why this isn't working and how to fix it?
Thanks.



LinkBack URL
About LinkBacks


