Link resources file problem

Post Reply
dixonchu
Posts: 21
Joined: Mon Nov 14, 2005 2:20 am

Link resources file problem

Post 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
User avatar
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Post 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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post 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
regards, saludos

Antonio Linares
www.fivetechsoft.com
dixonchu
Posts: 21
Joined: Mon Nov 14, 2005 2:20 am

Post 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
User avatar
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Post 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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Dixon,

Please check that you are using FiveHX.lib and FiveHC.lib
regards, saludos

Antonio Linares
www.fivetechsoft.com
dixonchu
Posts: 21
Joined: Mon Nov 14, 2005 2:20 am

Post 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
Post Reply