Here my version, using my last extended FireFly modification
in fact, it is more a test for different points, I wanted to check
embedding files in the exe
detect 32/64 os running
detect what kind of dll/exe 32 or 64
and other stuff...
What the application is doing, is just creating the interface for the selected dll
the dll can be 32 or 64
a simple tool Gendef.exe is creating the Def file
then dlltool /as exe couple create the interface according to the Def file
the application manage the right dlltool/as to do it
on the attached files
project to compile
the generated Firefly files,
the 2 bat files for 32 or 64 compilation
the modified rc (to get the ico)
and the different files needed to be embedded
2 already compiled versions on a folder
and the full.rar content also on a folder
updated attachments (project and compiled)
Corrected version
detection of dll 32 was too restrictive and for dll 64 was not enougth precise
so could have some problems
the code now is safer , it check at 60/61 the value of offset for PE xx xx (hex 50 45 00 00)
and verify if is hex 64 86 (64bits) or hex 4C 01 (32bits)
modified attachment on the first post for project code and already compiled
than you for sharing :)