Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Compiling resource files with Borland 5.5 free compiler

Status
Not open for further replies.

rjr9999

Programmer
Apr 7, 2001
183
US
Hello all...I hope someone can help me here. I'm trying to compile resource files useing borland 5.5, and I don't understand why it's not compiling...I'm fairly new to windows programing with C/C++, so try not to laugh if it's something stupid...here's the resource file -

IDD_ABOUT DIALOG DISCARDABLE 0, 0, 239, 66
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "My About Box"
FONT 8, "MS Sans Serif"
BEGIN
DEFPUSHBUTTON "&OK",IDOK,174,18,50,14
PUSHBUTTON "&Cancel",IDCANCEL,174,35,50,14
GROUPBOX "About this program...",IDC_STATIC,7,7,225,52
CTEXT "An example program showing how to use Dialog Boxes\r\n\r\nby theForger",
IDC_STATIC,16,18,144,33
END

and here's the error I'm getting -

Fatal error Expecting resource name or resource type name

Any Ideas?

Thanks in advace,

Rob
"Programming is like art...It makes me feel like chopping my ear off."

 
Hi,
The compiler is seeing

CTEXT "An example ...................
Boxes .........",

as an unterminated string.
Try putting a backslash after the first line of the quote.

CTEXT "An example ................... Boxes .........",

Hope this helps.
Pappy
You learn something everyday.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top