Vij
You cannot use the LIB file (get the DLL, if any, from which it was
produced.). The header file needs to be translated into a Pascal unit
for Delphi to be able to use it. Get Dr Bob's HeadConv program. This
will do most of the job for you - but you might have to make manual
adjustments. HeadConv presumes that the header file is an interface
to a DLL. If there is no DLL, then you are stuck.
Best regards, The Chief
--------
Dr. Abimbola A. Olowofoyeku (The African Chief)
Email: la...@keele.ac.uk
Homepage: http://ourworld.compuserve.com/homepages/African_Chief/
Author of: Chief's Installer Pro v5.00 for Win32
ftp://ftp.simtel.net/pub/simtelnet/win95/install/chief500.zip
Delphi cannot read C headers, so you have to translate the header to a
Delphi import unit (all the API units like ShellAPI or Windows are import
units). You do not need the LIB file (i hope this is a DLL link library,
not a collection of OBJ files).
There are tools around that try to automate the translation:
http://www.mop.no/~alex/technical_htrans.html
http://www.drbob42.com
They can do some of the grunt work but some manual post-processing is
usually needed. You can find some general information on how to translate C
to pascal on the Delphi Jedi site: http://www.delphi-jedi.org.
Peter Below (TeamB) 10011...@compuserve.com)
No e-mail responses, please, unless explicitely requested!
Vij
Sharad Srivastav wrote in message <7abmvk$6v...@forums.borland.com>...
>Hi all,
>I want to import a C Lib file and a Header file as Delphi units to use in
>projects... How do I go about it? Any help is appreciated... Thanx in
>advance...
>
>Vij
>
>