?
Solved

Using C LIB files in Delphi

Posted on 1997-02-27
2
Medium Priority
?
1,296 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 4

Accepted Solution

by:
marko020397 earned 400 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
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…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

752 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