News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

resource error

Started by 5k3l3t0r, October 09, 2010, 09:54:40 PM

Previous topic - Next topic

5k3l3t0r

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

untio

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.

5k3l3t0r

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.