The LoadLibrary()
API does not work with my MFC application when running on a 64-bit Windows 7 PC. It returns error 998 for a specific DLL. This DLL is built on a 32-bit machine. But there is no problem to load other DLLs.
I tried to exclude this MFC application from DEP, but the problem is still the same.
But what surprised me was that when I wrote a sample console application to test this, using the same API to load the problematic DLL, it worked as expected.
Can someone tell me the cause of this problem?
source share