Solved

Using C LIB files in Delphi

Posted on 1997-02-27
2
1,290 Views
Last Modified: 2013-12-04
I have a couple of C LIB files, and respective header files.
I need to make use of these from Delphi.
 
The only way I can figure is to build .OBJ object files, and include them in my app.
Now my problem is...HOW ?

Some-one mentioned to me I should use PLINK, apparantly a feature which was supplied as part of dos 3.x
 
However, I would assume the .LIBs are 32 bit, as they have been developed for NT use only.
 
Since my knowledge of C is limited, and the LIBs contain MANY calls, I don't want to go through the excersize of developing a DLL, in C, unless it's my last option.

What now ???
0
Comment
Question by:bond022797
2 Comments
 
LVL 4

Accepted Solution

by:
marko020397 earned 200 total points
ID: 1298885
Delphi uses libraries for accessing to databases. It uses idapi.lib or idapi32.lib in Delphi 2. You should have a BDE.INT somewhere in your Delphi directories. It's a sample of IDAPI.H translated to Delphi pascal. If you installed sources to you have all the sources for database components, which uses idapi.lib.

In Project Options/Library/Library Path you should set a path to your libraries.

I tnink this examples should help you. I didn't have enough time to try to make an example of using a library. Let me know if you had some success. If not write back and I'll try to make an example.

Marko
0
 

Author Comment

by:bond022797
ID: 1298886
Marko

Thanks for the reply. However, the idapi lib is actually a DLL.
The file formats I have are *.LIB. I performed a search in the
Borland dirs for IDAPI*, and found only DLLs.

I am using a full blown version of Delphi 2.1 (w/src), and
am led to believe I have all borland want me to...

Project Options/Library... I assume you are explaining a menu
selection...  No such menu option

Project/Options supplies a dialog, with no indication to defining
library paths. I checked out Tools/Options/Library, but as far as I can tell, this only points to Delphi style libraries (.DCU).

Once again, thanks for the answer. Perhaps you could elaborate a little more. I feel though, that I will need to develop a DLL from C anyways, which can then be used from Delphi.

Hope to hear from you soon
0

Featured Post

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
error email attachment VB2010 5 54
Need example 5 128
Need more details 5 182
Please explain "Multi-Tenant Services" 5 108
This article shows a few slightly more advanced techniques for Windows 7 gadget programming, including how to save and restore user settings for your gadget and how to populate the "details" panel that is displayed in the Windows 7 gadget gallery.  …
For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question