Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

SauronTheDark

How do i load use dlls at run time?

This topic is 5931 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 be able to let the program select a dll at run time for my rendering system. ie Direct3d or opengl. how would i link to the libary so that i can use functions from one of the 2 libarys? #define BLOODY_WORK_THIS_TIME;

Share this post


Link to post
Share on other sites
Advertisement
you want to look into "LoadLibrary" and "GetProcAddress".

but, for what you are describing this is NOT necessary.

To the vast majority of mankind, nothing is more agreeable than to escape the need for mental exertion... To most people, nothing is more troublesome than the effort of thinking.

Share this post


Link to post
Share on other sites
Think it was an article about this here on gamedev. If I''m not way wrong it was called "Striving for API independence".






Coding is easy - All it consists of is moving blocks of memory back and forth - the trick is to know which part of memory to move, and where to move it!

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

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

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!