I am having trouble incorperating resource files into my programs. With resource files I have created and resource files given as examples I have not been able to compile my program. I am using the Borland free compiler(5.5), and I get the following error:

Error E2141 d1.rc 9: Declaration syntax error

The code from the resource script is..

DIALOG1 DIALOG 127, 64, 228, 138
STYLE WS_VISIBLE | WS_SYSMENU | WS_THICKFRAME | WS_MAXIMIZEBOX | WS_MINIMIZEBOX | WS_POPUP |WS_CAPTION |WS_BORDER |WS_DLGFRAME
CAPTION "Dialog"
FONT 8, "MS Sans Serif"
LANGUAGE LANG_NEUTRAL, 0
BEGIN
CONTROL "Ok",106,"BUTTON",BS_PUSHBUTTON|WS_VISIBLE|WS_TABS TOP,179,73,35,20
CONTROL "Cancel",107,"BUTTON",BS_PUSHBUTTON|WS_VISIBLE|WS_ TABSTOP,177,106,35,20
END


The error happens on the first line here, the "DIALOG1 DIALOG etc" line.

This is very frusterating because it seems like the error is in something I didn't do, but I'm guessing that it has something to do with the compiler's options. Can anybody help?