Solved

borland builder code linking to visual studio static library

Posted on 2001-07-20
2
686 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 50 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
Programmer's Notepad is, one of the best free text editing tools available, simply because the developers appear to have second-guessed every weird problem or issue a programmer is likely to run into. One of these problems is selecting and deleti…
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now