Re: 'HeapQueryInformation' : undeclared identifier

《软件调试》的示例程序

'HeapQueryInformation' : undeclared identifier


wsbd008 2010-05-18, 00:40 上午
第23章的示例程序HiHeap中,我用VC6打开编译报错,'HeapQueryInformation' : undeclared identifier,头文件都没变,为什么啊?

Re: 'HeapQueryInformation' : undeclared identifier


格蠹老雷 2010-05-18, 20:29 下午

这个函数是XP时引入的,VC6附带的头文件和lib文件不包含这个函数;

解决的办法是安装新版的SDK,如果机器上安装有VS2005或者更高的版本,那么可以使用这些版本附带的SDK,然后在VC的路径选项中增加指向这些目录的路径。

Tools > Options > Directoies > Include files

Tools > Options > Directoies > Library files

Re: 'HeapQueryInformation' : undeclared identifier


wsbd008 2010-05-18, 21:13 下午
哦,问题已经解决,谢谢张老师。

Powered by Community Server Powered by CnForums.Net