The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: 5k3l3t0r on October 09, 2010, 09:54:40 PM

Title: resource error
Post by: 5k3l3t0r on October 09, 2010, 09:54:40 PM
hi all...
i have a problem wen compile my app, is just a test in bcc
i'm using RadAsm 3.0.0.7

and i have this error :

Error BCCTest.rc 10 23: Expecting BEGIN


this is the rc file:


#define MANIFEST 24
#define IDD_DLG1 1000
#define IDC_BTN1 1001
#define IDC_BTN2 1002
#define IDC_EDT1 1003
#define IDR_XPMANIFEST1 1

IDD_DLG1 DIALOGEX 10,10,168,99
CAPTION "IDD_DLG"
FONT 8,"Tahoma",400,0,0
STYLE 0x10CF0000
BEGIN
 CONTROL "IDC_BTN",IDC_BTN1,"Button",0x50010000,108,81,54,15
 CONTROL "IDC_BTN",IDC_BTN2,"Button",0x50010000,108,66,54,15
 CONTROL "",IDC_EDT1,"Edit",0x50010000,9,15,147,15,0x00000200
END

IDR_XPMANIFEST1 MANIFEST "xpmanifest.xml"


someone can give me a help? i'm new in C

tkx in advance.
bye
5k3l3t0r
Title: Re: resource error
Post by: untio on October 11, 2010, 05:50:28 PM
Hi to all,
Your code is perfect. With the masm32 resource compiler (rc.exe) it compiles fine. It seems that the borland's resource compiler doesn't work right with the FONT resource instruction. Look at:
https://forums.embarcadero.com/thread.jspa?threadID=8670&tstart=225
If you want to use borland resource compiler change:
FONT 8,"Tahoma",400,0,0
to
FONT 8,"Tahoma",400,0
I shall give you an advice about the style. I include at the beginning of the resource file:
#include <windows.h>
And, in this manner, I write the constant names and not the numeric values. Notice that values can change, but names will be the same.
And it is clearer to use:
ANSI_CHARSET
than:
0

Please, forgive my mistakes.
Title: Re: resource error
Post by: 5k3l3t0r on October 12, 2010, 12:17:58 PM
Hi untio...
tkx for answer, it solve my problem...

the error msg point to the line where is the font, but i never realized that is the error...:(

bye, and again realy thanks.

5k3l3t0r.