I have a console application in C++. I need to access a functionality from a C++ DLL. How do I link the DLL from my console application?
Please help me in this regard.
Thanks,
Rakesh.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It depends on whether you are using load-time or run-time dynamic linking.
With load-time dynamic linking, you simply link against the import library for the DLL and make sure the DLL is in the right location when you run. With run-time dynamic linking, you need to use
LoadLibraryandGetProcAddressto make calls into the DLL.Both are described in detail on MSDN, with examples.