C++/VC++ dll


Followup To
Question -
How can I use a VC++ dll file in a Borland C++ project?
Answer -
alshikh , Thank you for your question.

Unfortunately, you have not given enough information for me to be able to answer your question. Please resubmit your question with more details or a clearer description and I will do my best to answer.

Borland compilers support DLLs fully. See your compiler documentation for details.

David Spector

I have a program written in VC++ and it use a dll file. I want to change this program to Borland C++ so I have to use the dll file which was written in VC++. can I use this VC++ dll file in Borland project? and How can I use it (this mean use the subroutines inside it) in my Borland C++ project?
Thank you very much

alshikh, DLLs are used the same way no matter what development tools or compilers are used.

There are two major ways to use DLLs.

1. Automatic loading: When a DLL is compiled and linked, an excuteable .dll file and a description .lib file are generated. When another project uses that DLL, include the .lib file in its project file list and copy the .dll file to the System folder or the same folder as the executable program.

2. Explicit loading: The .lib file is not used. Instead, the Windows library functions LoadLibrary and GetProcAddress are used to load the DLL into memory and to find the address of a particular function defined in the DLL.

Both of these methods are described in the documentation that came with your compiler.



All Answers

Answers by Expert:

Ask Experts


David Spector


Highly knowledgeable in the C++ language, Visual C++ (MSVC), Windows API, documentation and other quality-assurance techniques, and debugging. Knowledgeable in MFC, COM, GUI design, and object-oriented design.


I have been a software engineer since 1965. I have been published. My specializations have been: biomedical programming, compiler implementation, and many kinds of Windows programming. I don't do Databases or other business-oriented stuff.

Windows?/DOS Developer's Journal, ACM SIGPLAN Notices, and Computer Science Press.

ICCP Systems Programming Certification
Master's degree equivalent in Computer Science

©2016 About.com. All rights reserved.