Re: Export C++ class from a Borland DLL and use it in Microsoft VC
- From: "Bruno van Dooren [MVP VC++]" <bruno_nos_pam_van_dooren@xxxxxxxxxxx>
- Date: Fri, 29 Sep 2006 10:58:24 +0200
I'm new of this group and I do not know if this is the correct group
for my question.
I have a DLL with its export library (.lib) wrote in Borland C++ 6. In
borland everything is OK and I am able to include the lib and use the
class that i have exported creating an instance with new etc... I
would like to export this class in microsoft VC++ using the same .lib
file. Obviously it doesn' t work.
Is it possible to generate or convert the import library into a
compatible format?
Nope.
There is no binary standard for compiled C++ code. Each compiler uses its
own binary layout.
This means that C++ code is incompatible between different compilers, and
even different compiler version.
Using Borland C++ dlls in msvc is not possible.
This is not a Microsoft problem btw. It is true for all compilers. Microsoft
even has a very good record for compatibility, gcc the worst.
If you want to export C++ code you have to stick with 1 compiler.
If you want to mix different compiler environments, you have to stay with
ANSI C interfaces.
--
Kind regards,
Bruno van Dooren
bruno_nos_pam_van_dooren@xxxxxxxxxxx
Remove only "_nos_pam"
.
- Follow-Ups:
- Re: Export C++ class from a Borland DLL and use it in Microsoft VC
- From: Markus Donath
- Re: Export C++ class from a Borland DLL and use it in Microsoft VC
- References:
- Prev by Date: Re: unable to locate MSVCP80D.dll
- Next by Date: reading in a file
- Previous by thread: Export C++ class from a Borland DLL and use it in Microsoft VC
- Next by thread: Re: Export C++ class from a Borland DLL and use it in Microsoft VC
- Index(es):
Relevant Pages
|