开发者

Load system dll : LoadLibrary("user32.dll") fails on Win7(32/64), but XP is OK?

开发者 https://www.devze.com 2023-04-01 00:34 出处:网络
I have a problem using loadlibray to load a system dll: user32.dll on Win7. (Xp is Ok) The demo is built on XP with VS2008, and runs successfully on XP. But, when it runs on Win7,it c开发者_运维技巧

I have a problem using loadlibray to load a system dll: user32.dll on Win7. (Xp is Ok)

The demo is built on XP with VS2008, and runs successfully on XP. But, when it runs on Win7, it c开发者_运维技巧rashes. I used the debugger, and find loadlibrary fails.

  • The result of LoadLibrary : 0x0000000
  • The result of GetLastError : 998(0x3E6)

Any tips on how to find the meaning of: 998?


In order to get the meaning of the error codes, go here:

http://msdn.microsoft.com/en-us/library/ms681381(v=vs.85).aspx

The error is:

ERROR_NOACCESS: Invalid access to memory location.

Seems like something is attempting to access unmapped memory under Win7, but not under WinXP. Strange.

0

精彩评论

暂无评论...
验证码 换一张
取 消