Ok, i've tried to load a custom DLL using LoadLibrary and it worked. I even tried to get the proc address of a variable and it worked.......sorta. Rather then return the actual value (42), it returned something else. is there a tutorail or something to do this? could come in handy. I suppose i could always look at Ogre's way of doing it, but let's see if i can learn my self first.
HMODULE dll = LoadLibraryA("simple_DLL.dll");
if (dll)
{
printf("DLL loaded");
int life = (int)GetProcAddress(dll,"?fnsimple_DLL@@YAHXZ");
if (life)
{
cout << life << endl;
}
}
EDIT: it just occurred to me i should of put it in the programming talk section....my bad
"Originally I was going to have a BS on it but you know how that would be. I can't walk around with the letters BS on me." More or less a qoute by Syndrome from Jack, Jack, attack