Pelles C forum

C language => User contributions => Topic started by: Vortex on November 07, 2023, 07:08:37 PM

Title: Dll to module definition file converter
Post by: Vortex 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.
Title: Re: Dll to module definition file converter
Post by: John Z 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
Title: Re: Dll to module definition file converter
Post by: Vortex 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.
Title: Re: Dll to module definition file converter
Post by: TimoVJL on November 08, 2023, 01:53:22 PM
similar Add-In for poide
https://forum.pellesc.de/index.php?topic=1079.msg5014#msg5014
Title: Re: Dll to module definition file converter
Post by: John Z 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