NO

Author Topic: Dll to module definition file converter  (Read 558 times)

Offline Vortex

  • Member
  • *
  • Posts: 802
    • http://www.vortex.masmcode.com
Dll to module definition file converter
« on: November 07, 2023, 07:08:37 PM »
DllToDef is a command-line tool writing all the exported functions of a Dll to a module definition file. This is a BCX project, the Basic source code is converted to C.
« Last Edit: November 16, 2023, 07:48:03 PM by Vortex »
Code it... That's all...

Offline John Z

  • Member
  • *
  • Posts: 796
Re: Dll to module definition file converter
« Reply #1 on: November 08, 2023, 11:53:51 AM »
Very nice Vortex.  Example .def output testing

C:\Users\John\Downloads\DllToDef>dlltodef32 libxlsxio_write.dll
libxlsxio_write.dll exports 12 functions.

C:\Users\John\Downloads\DllToDef>dlltodef64 libxlsxio_write.dll   <- on purpose  :)
Error : libxlsxio_write.dll could not be loaded.

C:\Users\John\Downloads\DllToDef>dlltodef64 libxlsxio_write64.dll
libxlsxio_write64.dll exports 12 functions.

Code: [Select]
LIBRARY libxlsxio_write64
EXPORTS
"xlsxiowrite_add_cell_datetime"
"xlsxiowrite_add_cell_float"
"xlsxiowrite_add_cell_int"
"xlsxiowrite_add_cell_string"
"xlsxiowrite_add_column"
"xlsxiowrite_close"
"xlsxiowrite_get_version"
"xlsxiowrite_get_version_string"
"xlsxiowrite_next_row"
"xlsxiowrite_open"
"xlsxiowrite_set_detection_rows"
"xlsxiowrite_set_row_height"

John Z

Offline Vortex

  • Member
  • *
  • Posts: 802
    • http://www.vortex.masmcode.com
Re: Dll to module definition file converter
« Reply #2 on: November 08, 2023, 11:58:17 AM »
Hi John,

Thanks for the tests. The format of the output is compatible with Pelle's .def file convention, the expoted symbols are enclosed between double quotes.
Code it... That's all...

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2091
Re: Dll to module definition file converter
« Reply #3 on: November 08, 2023, 01:53:22 PM »
May the source be with you

Offline John Z

  • Member
  • *
  • Posts: 796
Re: Dll to module definition file converter
« Reply #4 on: November 08, 2023, 05:32:25 PM »
Hi TimoVJL,

Integrated is nice!  A lot of downloads for these.

Adding to my setup too.

Thanks,

John Z