I am using Dev C++, and I am trying create a dialog box in a Win32 program.
I have the resource file as well as the header file set up.
When I try to compile the program, the compiler creates the file Test_private.rc as it should, but then gives me an error saying only "[Resource error] syntax error". Its saying the error is on a blank line so I don't know what the problem is.
This is what the file looks like:
1. /* THIS FILE WILL BE OVERWRITTEN BY DEV-C++ */
2. /* DO NOT EDIT! */
3.
4. #include "dialog.rc"
5. (gives error on this line)
IDD_TOOLBAR DIALOGEX 0, 0, 98, 52
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION
EXSTYLE WS_EX_TOOLWINDOW
CAPTION "My Dialog Toolbar"
FONT 8, "MS Sans Serif"
BEGIN
PUSHBUTTON "&Press This Button",IDC_PRESS,7,7,84,14
PUSHBUTTON "&Or This One",IDC_OTHER,7,31,84,14
END