Solved

borland builder code linking to visual studio static library

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone 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

Suggested Solutions

Title # Comments Views Activity
designing in object programming 12 94
How to Correctly derive class from CWinThread in MFC 4 66
How do i run a c++ file? 15 46
I could not set window to top 4 21
Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.
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…

828 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