读书人

windows核心编程第五版 源代码有关问题

发布时间: 2012-06-02 14:16:14 作者: rapoo

windows核心编程第五版 源代码问题
小弟最近买了一本windows核心编程第五版

在网上下了源代码 但是代码全部编译通过 有些代码不能运行

错误:
无法定位程序输入点 CreatePrivateNamespaceW 于动态链接库 KERNEL32.dll上

注意: 全部都能通过 只是有些不能运行

小弟用的是windows Xp 和vs2008

[解决办法]
看MSDN,需要Vista以后操作系统

Taken from MSDN:

Requirements to use the API CreatePrivateNamespaceW:

Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Header Winbase.h (include Windows.h)
Library Kernel32.lib
DLL Kernel32.dll
Unicode and ANSI names CreatePrivateNamespaceW (Unicode) and CreatePrivateNamespaceA (ANSI)

To compile an application that uses this function, define _WIN32_WINNT as 0x0600 or later.

Check your system meets these requirements to use the API CreatePrivateNamespaceW.
[解决办法]

探讨
看MSDN,需要Vista以后操作系统

Taken from MSDN:

Requirements to use the API CreatePrivateNamespaceW:

Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Header Winbase.h (include Windows.h)
Library Kernel32.lib
DLL Kernel32.dll
Unicode and ANSI names CreatePrivateNamespaceW (Unicode) and CreatePrivateNamespaceA (ANSI)

To compile an applica…

[解决办法]
XP肯定是不行的。其实有很多函数会有类似的限制。楼主还需要多多关注API函数的适用说明。
[解决办法]
xp下还是看第四版吧
[解决办法]
有些人喜欢看最新的,可最新的不一定是最好的.
[解决办法]
知识不断进步!
[解决办法]
windows核心编程五是基于vista的,楼主仔细看下书。

读书人网 >VC/MFC

热点推荐