How do i load use dlls at run time?
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;
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.
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.
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!
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!
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement