• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1639
  • Last Modified:

DLL developed in Codegear C++ builder Versus Visual Studio C++

hello experts,

I want to know is C++ DLL developed in Codegear C++ builder the same to C++ DLL developed in Visual studio C++? i want to know the differences from any perspective?

and how about consuming the DLL, i mean importing and calling functions in the dll, is there any difference?

Thanks so much,

2 Solutions
C++ does not have a standard ABI (application binary interface). This means c++ code compiled with different compilers are not binary compatible.

The layout of the class, the virtual method table, name mangling, all might (and in this case are) different. There are probably more things which are different.

Even the import lib (if you want to statically link) are different in the compilers, visual studio produces static libraries in coff format while codegear does it in omf format.

C on the other hand does have an ABI. So if you only export functions and primitive types you can interface with the dll from any compiler. You need to wrap the function declarations in an extern "C" {} block to prevent name mangling. Basically you cannot use classes interoperably, just the subset of C++ which is C.

George TokasCommented:
What I have to say is that extensive information on what you ask is covered on chapter 16 at "C++ Builder 6 Developers Guide" book....
On the other hand versions of BCB after 6 has improved compatibility with VC and the latest (2009) version is has all the upgrades...
So it depends on the version you are using at first....
The book will help you the most when an entire chapter deals with dlls

George Tokas.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now