how can I put resources (bitmaps, waves) in a dll (data or normal) via asm-code ?
Can you please help ?

Posted on 2002-09-24 12:42:52 by Sm?rebr?d
Exactly the same way you do it with .exe
Posted on 2002-09-24 13:51:20 by Vaxon
Hi Vaxon,

and how to do it with .exe ?
Can you please post a code example ?

Posted on 2002-09-24 14:31:36 by Sm?rebr?d
There are tons of examples on the net. Also check out hutch's masm package. movsd.com
Posted on 2002-09-24 17:27:05 by Asm_Freak

Tons of examples ?
I couldn't find one example or tutorial...
Can you post some links, please

Posted on 2002-09-25 03:40:31 by Sm?rebr?d
Yep, tons of examples ;) You need to use a RC file... just open the "rsrc.rc" files in the masm32 sample folders.
Posted on 2002-09-25 04:30:23 by bazik
Sorry basik,

I don't want to link resources to my program,
I want to load a dll or exe, put a bitmap or sound to it and save it together with the resource.
I want to write a resource-hacker like program...

Can you help ?

Posted on 2002-09-25 06:19:24 by Sm?rebr?d
We had this topic only a few days ago... don't you read the forum regulary? :rolleyes:
Posted on 2002-09-25 06:42:44 by bazik
Sorry bazik,

I need the reverse way.

Posted on 2002-09-26 07:22:15 by Sm?rebr?d
I believe there was someone here who asked the same question. I don't believe there are any tutorials, since this isn't something you have to do very often.

I'd say: study the PE format (exe and dll files are both PE format) and just modify the exe by hand. The resources should be in the ".rsrc" section. If you want to go for the "easy" way, you could just add some resources in Resource Hacker and see what happens in the exe file.
Posted on 2002-09-26 09:03:10 by Qweerdy
Thank you Qweerdy !

I will tyr your PE idea.

Posted on 2002-09-26 09:25:59 by Sm?rebr?d