Jump to content
  • Advertisement
Sign in to follow this  
dave

DLL Linking Question

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

It didn't take me long to link a DLL into an EXE using a DEF file. In fact it was pretty trivial. One thing that i am thinking about testing is arbitrary pieces of functionality in different DLLs. Keeping this nice and simple for now i have a DLL (called DLLA) with an Increment() function that takes an integer reference, it increments the integer when called. I also have a DLL (called DLLB) that has a Increment100Times() function that takes an integer reference and calls Increment in the first DLL 100 times passing the reference in. Now first of all i fail to see how you resolve the dependancy of DLLB on DLLA. DLLA builds fine, but ofcourse DLLB cannot resolve the function Increment(). I can't see how i link it in the project settings and i don't think i can link using LoadLibrary() within DLLB because there is no code running at compile time. So any ideas on how i do this, if at all? Google only turns up articles on linking DLLs into EXEs.

Share this post


Link to post
Share on other sites
Advertisement
I think the problem was that the compiler wasn't outputting a LIB file as well as the DLL. So i didn't have anything to link in.

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!