Hello everyone,
I've searched the forum for an answer to my newbie question, but found nothing directly related to it...although lots of good stuff about DLL's.
In my little program in the main() I successfully use LoadLibrary and GetProcAddress and call a couple of functions in a DLL. In short, the DLL works as such. Then, I CreateThread(...) and create a new thread. The function called by CreateThread attempts to do a LoadLibrary and GetProcAddress to the SAME DLL. Nothing happens. No error messages, no nothing. The function invoked by CreateThread gets to the line in which LoadLibrary is called and does nothing. Program exits without errors.
The DLL itself has a BOOL WINAPI DllMain entry point with the "usual" DLL_PROCESS_ATTACH, etc. values in a switch block.
It seems like what I'm trying to do should work, but it doesn't. I have zero tech support, and I'm out of ideas.
Thanks for considering this problem.
Regards to all,
Mark Allyn