Dialog button& .rc file problem
Hello,
I'm trying to create a program that creates a dialog when you click on a certain menu option.
Now, the problem is my compiler doesn't work well with resource files.
So, is it possible to create a dialog from within the program, without haveing to create the template in a resource file? I know it's possible to do it with menus, but not sure if you can do it with dialogs.
If it is possilbe could someone show me an example of what to put when using it?
EDIT:
Ok I got this problem solved except one minor thing, I keep getting a parse error on line three of the following .rc file:
Code:
IDD_ABOUT DIALOG DISCARDABLE 0, 0, 239, 66
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Sans Serif"
CAPTION "ORANGE!!!!"
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
No matter wich line is line three there is a parse error. Any ideas what it could be?