rc file not working

Okay... I'm trying to make an application program, with a dialog box. And I need to include a .rc file, my problem is my compiler keeps making a fuss about it, and gives me a syntax error, can anyone tell me if I'm doing anything wrong, or is my rc file wrong?

Here's my rc file.
1
2
3
4
5
6
7
8
9
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


Many thanks to any and all help :) - Tyler
Copy and paste the exact error the compiler is giving you. Also what compiler are you using?
[Resource error] syntax error
[Build Error][Windowt_private.res] Error 1

Dev-Cpp

I can null out lines 2, 3, 7, and 8 and it will compile, but that kinda defeats the purpose.

Edit: My Bad, I figured it out. I'm very new to applications, and I misunderstood what to do, that was only one part of the rc file :P. But thank you for trying Lamblion :)
Last edited on
Topic archived. No new replies allowed.