ermm, maybe the WINAPI function GetModuleHandle could help? It retrieves a handle to the loaded module so check if GetModuleHandle("my.dll") returns a handle, if it does > it's loaded. If it returns NULL then its not loaded.

At least that is my understanding of the function, i've never had to use it.

You could check in a while loop...
Code:
while(1)
{
if(GetModuleHandle("my.dll") != NULL){break;}
wait(1);
}
// continue once dll is loaded



Is lite-c loading the DLL automatically? Otherwise you could use the LoadLibrary function and that returns a valid handle if the DLL is successfully loaded.

Last edited by DJBMASTER; 10/25/09 09:20.