Jump to content
  • Advertisement
Sign in to follow this  
ciranmc

Adding .dll references?

This topic is 3037 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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!

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Yes my .dll are managed code C++/CLI.
Is it possible to use these managed .dll files with unmanaged C++ ?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!