This is one of my first attempts doing a windows program. I'm trying to include a resource file into my program (Including a window with two buttons), but when I compile, the error "resource.rc (15,9) : Declaration terminated incorrectly" appears.
I included the file with #include "resource.rc" (I assumed this is how you include resource files, maybe I should do it another way..?)
I believe that the error has something to do with the resource file, since it has a different syntax than "normal" c/c++ -code. This is how it looks:
#define DIALOG_2 2
#define IDC_BUTTON1 101
DIALOG_2 DIALOG 0, 0, 240, 120
STYLE DS_MODALFRAME | DS_3DLOOK | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME
CAPTION "Main window"
FONT 8, "MS Sans Serif"
{
CONTROL "OK", IDOK, "BUTTON", BS_PUSHBUTTON | BS_CENTER | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 186, 6, 50, 14
CONTROL "Cancel", IDCANCEL, "BUTTON", BS_PUSHBUTTON | BS_CENTER | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 186, 26, 50, 14
}
(15,9 is right after DIALOG_2 below the definitions)
Do you have any idea what is wrong here?I really need help with this...
I'm using Borland 5.0