How can I add a .dll in Visual Studio 2010? I just cannot find the option there.
How can I add a .dll in Visual Studio 2010? I just cannot find
Share
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.
On Windows you do not link with a
.dllfile directly – you must use the accompanying.libfile instead. To do that go toProject -> Properties -> Configuration Properties -> Linker -> Additional Dependenciesand add path to your .lib as a next line.You also must make sure that the
.dllfile is either in the directory contained by the%PATH%environment variable or that its copy is inOutput Directory(by default, this isDebug\Releaseunder your project’s folder).If you don’t have access to the
.libfile, one alternative is to load the.dllmanually during runtime using WINAPI functions such as LoadLibrary and GetProcAddress.