繁体中文
设为首页
加入收藏
当前位置:程序开发首页 >> Visual C++ >> 一类WINNT函数使用问题的解决方法存档!

一类WINNT函数使用问题的解决方法存档!

2005-01-09 20:55:23  作者:wengzhong  来源:互联网  浏览次数:3  文字大小:【】【】【
简介:诸如CopyFileEx 这样的函数在使用的时候可能会碰到明明是包含在头文件里的函数但编译不过去,显示如下: error C2065: 'CopyFileEx' : undeclared identifiererror C2065: 'COPY_FILE_RESTARTABLE' : undeclared...

诸如CopyFileEx

这样的函数在使用的时候可能会碰到明明是包含在头文件里的函数但编译不过去,显示如下:

error C2065: 'CopyFileEx' : undeclared identifier

error C2065: 'COPY_FILE_RESTARTABLE' : undeclared identifier

解决方法如下:

For example, to use the features specifically marked for Windows 2000 in the header files, you need to explicitly define _WIN32_WINNT as 0x0500 or greater. You can define the symbols using the #define statement in each source file, or by specifying the /D_WIN32_WINNT=0x0500 compiler option supported by Visual C++.

#define _WIN32_WINNT 0x0500

#include

一定要在头文件之前

责任编辑:admin
相关文章