I figured out through trial n error how to link an unmanaged static library to managed C++ dll, but I have no idea how to dynamically include a DLL. Does anyone know how to do this in Visual studio 2008?
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.
I’m trying to link CAIR into my managed assembly. CAIR depends on pthreads, a static or dynamic library for accessing posix functions of any OS.
This doesn’t make sense to me, but the solution was to include the pthreads.lib file into the managed C++ assembly AND dynamically link pthreads.dll into the managed library as well as all consumer projects.
I was under the impression I didn’t need the dll if I statically compiled the lib into my managed assembly.