Ok this just refuses to compile with mingw's windres. Just comes up with a parse error on the line with "STYLE DS_MODALFRAME. . . . ".
I've looked at it over and over again but still can't find out where
I've gone wrong.

resource file:
Code:
CHANGE_CIRC_NAME DIALOG DISCARDABLE 0, 0, 239, 66
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Enter Circuit Name:"
FONT 8, "MS Sans Serif"
BEGIN
  EDITTEXT                 IDC_CCN_NAME,   174, 18, 50,  14
  DEFPUSHBUTTON "&OK",     IDC_CCN_NAME,   174, 35, 50,  14
  PUSHBUTTON    "&Cancel", IDC_CCN_CANCEL, 7,   7,  225, 52
END
header file:
Code:
#define CHANGE_CIRC_NAME 6000
#define IDC_CCN_NAME     6001
#define IDC_CCN_OK       6002
#define IDC_CCN_CANCEL   6003