• Advertisement
Sign in to follow this  

Using DLL in my Solution

This topic is 4377 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

Hi to all, I have in a Visual C++ Solution (.sln) 2 projects, the first one is a executable and the other is just a DLL project. Well, until here there are not problems. Just compile perfectly. My problem comes when i need to use code of my DLL from first project (executable), i just include the header which has prototypes of my class in DLL proyect, but i get a error when linking... :( I just did the same like if the DLL would be a Static Library. Someone can help me? thanks in advance Kustom

Share this post


Link to post
Share on other sites
Advertisement
You should have a .lib file that was created as part of the DLL project.Include that .lib for linking with the executable, just as if it were a static lib.


Share this post


Link to post
Share on other sites
thanks _winterdyne_!!!

it works! :)

could i did a managed DLL and use in a unmanaged code?
i think i cant did it because i can include a c++ managed header(.h) in my unmanaged project.



thanks in advance

kustom

Share this post


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

  • Advertisement