Page 1 of 1

Link resources file problem

Posted: Fri Jan 12, 2007 9:31 am
by dixonchu
Dear all

I just upgrade from FWH 2.4 + Harbour 4.20 + BCC55 to FWH 2006-DEC +
xHarbour .99.61 + BCC55

but I have a problem when I iLink the resources ( XX.res convert from XX.rc
with Borland WorkShop 4.5)

The error message is "contain invalid OMF record, type 0x00"

I have already recompiled all my source files with xHarbour .99.61

The link is OK when FWH 2.4 + Harbour 4.20 + BCC55


Anyone Help !


Best regards


Dixon Chu

Posted: Sat Jan 13, 2007 7:01 pm
by James Bott
In a situation like that this is what I do. Make a copy of the RES file and delete about half of the resources. Then link again. If you still get the error, then delete half of what was left and link again. Continue until you find the problem resource.

However it doesn't sound like a resource error. Are you sure you not linking in an old OBJ or LIB?

James

Posted: Sat Jan 13, 2007 7:45 pm
by Antonio Linares
Dixon,

> The error message is "contain invalid OMF record, type 0x00"

Please copy the entire output here.

It looks as you are mixing OMF and COFF files. Borland uses OMF and Microsoft uses COFF

Posted: Sun Jan 14, 2007 2:58 am
by dixonchu
The RES is linked OK with BCC55 + Harbour 42.0 + FWH 2.4 and
VC6 + xHarbour .99.61 + FWH6.12 also.
It only have problem on BCC55 + xHarbour .99.61 + FWH6.12

I try to delete some of items , and relink it , It still have same error

Thanks anyway , maybe I can go for VC6 + xHarbour .99.61 + FWH6.12

Best Regards

ps. sorry Antonio , I can't find the attachmemt button to upload the RES file

Posted: Sun Jan 14, 2007 5:52 am
by James Bott
Dixon,

>but I have a problem when I iLink the resources ( XX.res convert from XX.rc with Borland WorkShop 4.5)

Did you know that you have to convert the 16bit resource file to 32bit? It has been awhile since I did this and I don't remember excatly how. Perhaps someone will chime in with instructions.

James

Posted: Sun Jan 14, 2007 7:28 am
by Antonio Linares
Dixon,

Please check that you are using FiveHX.lib and FiveHC.lib

Posted: Sun Jan 14, 2007 8:31 am
by dixonchu
Dear James and Antonio

yes ! I'm using FiveHX.lib and FiveHC.lib

and the RES is 32 bit also .

It's OK when I link this RES file at FWH/samples (FWH6.12)

OK , forget it, I'm going change to VC6 + xHarbour + FWH6.12

So , bye ! bye ! Borland C , I will miss you

Thanks James and Antonio

Best Regards!

Dixon Chu