I have a MFC DLL that fails to load in a LoadLibraryEx call, but only on Windows 95 - it works fine on 98 and NT/2000.

It doesnt even get to the DllMain function - the load call returns straight away with a DLL failed to initialize error.

Does anyone know how I can debug this to see what is causing the problem.

I dont think its any of the reasons given in the Platform SDK for 95 failure (resource values > 0x7fff, Unicode calls etc), but am really clutching at straws now....



James