Adding .dll references?

Started by
2 comments, last by ciranmc 14 years ago
I want to use methods from a .dll file in my Visual Studio project but I am not exactly sure how to go about it. I know that your supposed to go to Properties->Common Properties->Framework and References, however when I actually try to add a new reference or add a path I just get a blank dialog box with nothing to click on. Is there any other means of doing the same thing? Any help would be greatly appreciated!
Advertisement
Quote:
I know that your supposed to go to Properties->Common Properties->Framework and References

That's for adding assembly references (managed code). Are your DLLs managed code?

If not, you need to #include the DLL's header files from the appropriate files in your project. You will also need to link against the stub/import library (.lib file) generated for your DLL when you built it or, if you are not using an import library, load the DLL manually via LoadLibray and hook up the function pointers for the methods via GetProcAddress, et cetera.
Also, moving to FB.
Yes my .dll are managed code C++/CLI.
Is it possible to use these managed .dll files with unmanaged C++ ?

This topic is closed to new replies.

Advertisement