Jump to content
  • Advertisement
Sign in to follow this  
F-Kop

[C/Win32] DLLs with no LIBs

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

How can you use functions from DLLs that didn't provide LIBs? I've been googling this for quite a while now. The only answer I got was to export DEF files from the DLLs, then convert them to LIBs. I've been using lib.exe, def2lib, makedef, and a whole bunch of other programs like that to accomplish this, and they are all full of bugs and don't work. I'm using VC2008 if that makes a difference. Any help is appreciated.

Share this post


Link to post
Share on other sites
Advertisement
You can load functions from a DLL at runtime using the LoadLibrary() function to load the DLL and the GetProcAddress() function to get the address of a DLL function. Look into these functions on MSDN and/or Google.

Share this post


Link to post
Share on other sites
Quote:
Original post by F-Kop
Is there a way to do it without changing or adding any code?
You don't need to change the DLL code at all, just the EXE.

What exactly are you trying to achieve? If the functions are exported from the DLL as mangled names, you can at least get the function signature, but if they're exported as C functions, you'll need to know it. What DLL(s)?

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!