开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜