I have three files:
-main.cpp:
Code:
#include <windows.h>
...
...
-resource.h:
Code:
#define ID_FILE_EXIT 9001
#define ID_HELP_ABOUT 9002
#define IDD_MYDIALOGBOX 9003
-resources.rc:
Code:
#include "resource.h"
IDD_MYDIALOGBOX DIALOGEX DISCARDABLE 0, 0, 0, 0
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "MyDialog"
{
}
Edit: Turns out it's a problem with the line, "STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU"
Doesn't say what it is though. It just says it's a "Syntax Error". No specifics. If I comment out that line, the program will compile and run and the dialogbox will be created but it is just a small rectangle box.