Sign in to follow this  
ciranmc

Adding .dll references?

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this