I have a thread loading a DLL and it works great except when I cold boot the machine. The DLL I am loading takes time to load the first time and it hangs up my thread. Any ideas on what I can do here? An example would be nice.
I am using LoadLibrary in InitExtAgent function. Can I use a sleep, or what. It needs to be thread safe. Is there a better way to tell when the LoadLibray has actually completed?
hInst=LoadLibrary("C:\test.dll); //this takes a few seconds