Following the tutorial I'm using, I entered this into my resource file:
| 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" { 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 } |
That's exactly what the tutorial told me to enter. The problem is that I get a syntax error on the "STYLE" line, and I have no idea what's causing it. Unfortunately, the error message doesn't get more detailed than that...
Thanks for all the help (though technically, I didn't ask a question... :))
Try putting #include <windows.h> at the top of the file. :)
Thanks. I really don't get the order in which these files are compiled... Anywho, I got past that, but now I get the same error in the "GROUPBOX" line. I checked the tutorial and even copy-pasted straight from it but it hasn't helped.
Thanks again.
[edit]
Never mind, I included afxres.h and it worked fine.