I know that Fasm can build .asm file with .rsrc section in the same file, it 's very useful I think, if I had made a .res file with an other compiler, how can I link the resource with my program?
I think maybe I know the way,but I'm not sure.
My way is to compile my program as .obj, than link it with the .res file.But how can I link them?
Must I use an other linker? :confused:
Posted on 2002-11-05 01:24:24 by LiuGuoHua(Chinese)
I'm sorry my English is not good.
Maybe it is hard for you to understand my expression.
Please be patient , thank you!
Posted on 2002-11-05 01:26:02 by LiuGuoHua(Chinese)
LiuGuoHua: you can use this great programs by Jeremy Gordon:
GoLink
takes COFF PE object files and a res file and creates exe or dll files able to run under Windows
no more lib files req.
RC compiler
produces RES files from RC files, or OBJ files from RC or RES files, together with documentation
Posted on 2002-11-05 02:25:14 by TBD
Yes,you can link your obj. code with the resource file(.res). Only,you have play with the API functions:

Privalov's COFF output sample:

format MS COFF

extrn __imp__MessageBoxA@16:dword
MessageBox equ __imp__MessageBoxA@16
.
.
.

As usually : link /SUBSYSTEM:WINDOWS /LIBPATH:c:\masm32\lib fasmcoff.obj resource.res

I hope this will work for you.

Regards,

Vortex
Posted on 2002-11-05 02:27:17 by Vortex
Thanks very much to teach a beginner!
TBD and Vortex.
I think I 've got the way.
Thanks again.
In chinese we say:"Xie Xie."
Posted on 2002-11-05 03:14:58 by LiuGuoHua(Chinese)