I'm trying to make a blank dialog without the stupid visuals they let you paint on. How do I go about this and do I need to put any #includes in the file? Please give me some simple steps because this is extremely annoying.
I don't know if I did this right, but I went to 'new' and clicked on header file, and typed in resource.h. I throw this in here...
#include <windows.h>
#include <afxres.h>
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
And this shows up...
c:\program files\microsoft visual studio\myprojects\win32 api practice\resource.h(5) : error C2146: syntax error : missing ';' before identifier 'DIALOG'
c:\program files\microsoft visual studio\myprojects\win32 api practice\resource.h(5) : error C2501: 'IDD_ABOUT' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\myprojects\win32 api practice\resource.h(5) : fatal error C1004: unexpected end of file found
...?