Thread View: comp.lang.pascal.delphi.misc
3 messages
3 total messages
Started by Martin Szotkowski
Wed, 09 Sep 1998 00:00
how can I use dll created for C?
Author: Martin Szotkowski
Date: Wed, 09 Sep 1998 00:00
Date: Wed, 09 Sep 1998 00:00
13 lines
1385 bytes
1385 bytes
Hi All, I have commercial product, which contains some dll files. There are some C header files and lib libraries files too, but I have not source codes. I know how write programs with C, it's ease include *.h and link library to my project. How can I make this with Delphi? Should I make myself some unit with declaration or something else? Please help me. Thank you for all ideas Martin martin.szotkowski@trz.cz
Re: how can I use dll created for C?
Author: Markus
Date: Wed, 09 Sep 1998 00:00
Date: Wed, 09 Sep 1998 00:00
22 lines
1574 bytes
1574 bytes
Martin Szotkowski schrieb in Nachricht <35F6366B.47E4@trz.cz>... >Hi All, >I have commercial product, which contains some dll files. There are some >C header files and lib libraries files too, but I have not source codes. >I know how write programs with C, it's ease include *.h and link library >to my project. > >How can I make this with Delphi? Should I make myself some unit with >declaration or something else? >Please help me. > >Thank you for all ideas Martin > >martin.szotkowski@trz.cz Hi, You will have to create your own import unit. Don't forget to use the "stdcall" argument while calling c dll's. Markus
Re: how can I use dll created for C?
Author: Bob Swart
Date: Thu, 10 Sep 1998 00:00
Date: Thu, 10 Sep 1998 00:00
23 lines
2054 bytes
2054 bytes
Hi Martin,
> I have commercial product, which contains some dll files. There are some
> C header files and lib libraries files too, but I have not source codes.
> I know how write programs with C, it's ease include *.h and link library
> to my project.
> How can I make this with Delphi? Should I make myself some unit with
> declaration or something else?
Check out HeadConv, my freeware C DLL header converter that I turned into a
command-line version recently (goto http://www.drbob42.com/ftp/headconv.zip).
HeadConv has full support for functions and procedures, argument and return
types (128 custom type conversions) and generates implicit Delphi import units.
The command-line HeadConv supports for typedefs, structs, unions, enums and
conditional compilations. HeadConv is not targeted to do the conversion 100%
on its own, rather it will assist you in converting the C DLL header files!
> martin.szotkowski@trz.cz
Groetjes,
Bob Swart (aka Dr.Bob - http://www.drbob42.com)
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads