PlanetSquires Forums

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Create FreeBasic interfaces for dll 32 or dll 64  (Read 423 times)

Marc Pons

  • FireFly3 Registered User
  • Junior FireFly Member
  • *
  • Posts: 107
  • FF3 User
Create FreeBasic interfaces for dll 32 or dll 64
« on: August 11, 2017, 08:06:37 AM »

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)
« Last Edit: August 13, 2017, 09:05:57 AM by Marc Pons »
Logged

Marc Pons

  • FireFly3 Registered User
  • Junior FireFly Member
  • *
  • Posts: 107
  • FF3 User
Re: Create FreeBasic interfaces for dll 32 or dll 64
« Reply #1 on: August 13, 2017, 08:59:59 AM »

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
« Last Edit: August 13, 2017, 09:04:42 AM by Marc Pons »
Logged

Johan Klassen

  • FireFly3 Registered User
  • Little Newbie FireFly
  • *
  • Posts: 19
  • FF3 User
Re: Create FreeBasic interfaces for dll 32 or dll 64
« Reply #2 on: August 13, 2017, 09:26:07 PM »

than you for sharing  :)
Logged