Click to See Complete Forum and Search --> : How to link BC++ dll with VC++ ??


July 9th, 1999, 11:06 AM
I want to link DLL created in Borland C ++ 5.0 with VC++ 6.0 project. How is it possible? And also how

Dhwanit
July 9th, 1999, 02:11 PM
The DLL you've created with Borland C++ will also have a corresponding .LIB file (created with the IMPLIB tool).All you have to do is add this LIB file into your VC project and start using the functions or classes that you've declared in the DLL. It's as simple as that. When running or distributing your VC++ application, make sure the DLL is inc

Paul McKenzie
July 9th, 1999, 03:53 PM
Your advice will not work. The LIB file created by Borland *is not* compatible with the Microsoft LIB file.

What he needs to do is one of the following:

- create the Microsoft LIB file given the DLL. The LIB program can do this, but I'm not sure of the steps involved.

- Create a .DEF file using Borland's IMPDEF program and then include the .DEF file in the project.

- Dynamically load the DLL and use GetProcAddress() to get the function pointers.

Regards,

Paul McKenzie