Hello all, first post, so be gentle...
I am trying to learn the Win32 API having spent many years programming the RISC OS WIMP.
I am using C with the Code:Block front end and GCC compiler.
I have a simple .rc resource file which seems to refuse to compile, the compiler throws up an error
error: expected identifier or '(' before numeric constant
The rc file is this:
// Generated by ResEdit 1.5.11
// Copyright (C) 2006-2012
//
ResEdit Resource Editor - free resource editor for Win32
#include <windows.h>
#include "resource.h"
//
// Dialog resources
//
//LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
IDD_wimp_error DIALOGEX 0, 0, 186, 95
STYLE DS_3DLOOK | DS_CENTER | DS_MODALFRAME | DS_SHELLFONT | WS_CAPTION | WS_VISIBLE | WS_POPUP | WS_SYSMENU
CAPTION "Dialog"
FONT 8, "Ms Shell Dlg"
BEGIN
DEFPUSHBUTTON "OK", DBIDOK, 129, 7, 50, 14
PUSHBUTTON "Cancel", DBIDCANCEL, 129, 24, 50, 14
END
I cannot see why the compiler will not accept the line defining the dialogue box
IDD_wimp_error DIALOGEX 0, 0, 186, 95
The resource file "resource.h" does include values for IDD_wimp_error and DBIDOK and DBIDCANCEL
Any help is much appreciated.
David