My program dynamically loads a number of DLL’s using LoadLibrary and (on literally all machines) these load successfully, on one machine some of these DLL’s do not get loaded. I added code to trace lasterror and this reports “0x43 The network name cannot be found.”.
The machine in question is running Windows 7 Enterprise x64, the DLL is a 32 bit DLL, this shouldn’t be an issue and (in fact) this is my development environment.
I also tried converting the name of the DLL (which includes the path) to a short filename and used that in the call to LoadLibrary, I still got the same error.
Any ideas?
//*eggbox
Download Procmon let it run and filter for you dll name. This will immediately give you the locations where the dll was searched and which access path did return 0x43.
You get even the call stacks if you have the pdbs for your code as well (C/C++ only no managed code).