Re: Using LIB Files in Delphi
- From: "Chris.Cheney" <Chris.CheneyXXNOSPAMXX@xxxxxxxxx>
- Date: Tue, 24 Jul 2007 16:24:37 GMT
"Chris.Cheney" <Chris.CheneyXXNOSPAMXX@xxxxxxxxx> wrote in
news:Xns997696BC7E3EAChrisCheneytesconet@xxxxxxxxxxx:
"Maarten Wiltink" <maarten@xxxxxxxxxxxxxxxxxx> wrote in
news:46a477a2$0 $327$e4fe514c@xxxxxxxxxxxxxx:
<alanglloyd@xxxxxxx> wrote in message
news:1185183207.213499.233940@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
[...]
How can I use the LIB file under Delphi. Is there a simple approach,
or maybe I have to get a C programmer to write a DLL which wraps the
LIB file.
That's probably the simplest. Lib files are Right Out in Delphi as
far as I know.
Groetjes,
Maarten Wiltink
Alan,
Linking with C-derived object modules/libraries is something that I
have, so far, managed to avoid having to do. However, it is something
that I believe is possible - but I may be wrong.
See Delphi (7 or 2006, probably others too) Project Options - there
are options to generate C/C++ object files.
The utility coff2omf supposedly will convert LIBs to OMF. I believe
(but again am not 100% certain) that the .OBJ files that Delphi is
capable of linking in using the $L/$LINK directive are OMF.
Further research indicates that Borland's coff2omf won't do the job but
Digital Mars have a utility of the same name that might - however it's
chargeable. But see http://www.agner.org/optimize/#objconv for a free
"Object file converter
This utility can be used for converting object files between COFF/PE,
OMF, ELF and Mach-O formats for all 32-bit and 64-bit x86 platforms. Can
also be used as a cross-platform library manager, a dump utility, and a
powerful disassembler. Source code included (GPL)."
I've not used it myself ...
Chris
Google throws up a number of coff/omf hits particularly wrt linking
with Python.
I for one would be interested in hearing how you get on.
Regards
Chris
.
- Follow-Ups:
- Re: Using LIB Files in Delphi
- From: Rudy Velthuis
- Re: Using LIB Files in Delphi
- References:
- Using LIB Files in Delphi
- From: alanglloyd@xxxxxxx
- Re: Using LIB Files in Delphi
- From: Maarten Wiltink
- Re: Using LIB Files in Delphi
- From: Chris.Cheney
- Using LIB Files in Delphi
- Prev by Date: shell execute prob on win2003
- Next by Date: OT: Vista programs don't run on XP
- Previous by thread: Re: Using LIB Files in Delphi
- Next by thread: Re: Using LIB Files in Delphi
- Index(es):
Relevant Pages
|