[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

borland builder code linking to visual studio static library

Posted on 2001-07-20
2
Medium Priority
?
755 Views
Last Modified: 2013-12-14
a static library is built using visual studio

the *.lib file and its header is placed in the borland project folder

in borland the path to libraries is set to the project folder

the visual studio created header is #included in the borland code and the header compiles ok evidenced by the fact that the types defined in the header are available in the borland code

Q is: what is required to use the functions defined in the *.lib file?

keep in mind that a DLL is not desired!


0
Comment
Question by:lirtua
2 Comments
 

Author Comment

by:lirtua
ID: 6303982
Comment 1:

I have run COFF2OMF on the library and included the resulting *.lib in the borland project
0
 
LVL 14

Accepted Solution

by:
AlexVirochovsky earned 200 total points
ID: 6304580
You can't use a static library made for VC++ (or any other compiler for
that matter). Static libraries are not cross-compiler, for any number
of reasons, from naming conventions to internal structure differences.

You can also do it yourself using impdef and such. A few pages
that are "Must See" for using 3rd party DLLs:

http://www.pacifier.com/~jgibbon/program_tip_4.html 
http://www.bcbdev.com/articles/vcdll.htm 
http://community.borland.com/article/0,1410,16599,00.html 
Alex
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
Article by: evilrix
Looking for a way to avoid searching through large data sets for data that doesn't exist? A Bloom Filter might be what you need. This data structure is a probabilistic filter that allows you to avoid unnecessary searches when you know the data defin…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
Suggested Courses

834 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