LoadLibrary API Fails with 998 (ERROR_NOACCESS)
Asked Answered
L

0

6

The API LoadLibrary() fails with my MFC application when run over a Windows 7 64-bit PC. It returns error 998 for a specific DLL. This DLL is built over a 32-bit machine. But no issues to load other DLLs.

I have tried excluding this MFC application from DEP, but still same issue.

But what surprised me is that, when I wrote a sample console application to check this by using the same API to load the problematic DLL, it worked as expected.

Can someone tell me the reason for this issue?

Livonia answered 25/10, 2011 at 9:17 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.