您的位置:首页 > 其它

error C2065: 'INVALID_SET_FILE_POINTER' : undeclared identifier

2015-09-06 13:32 531 查看
Searching MSDN for that constant brings up one result: it's a failure code for SetFilePointer() and is defined in winbase.h, which is included in any project that includes windows.h. That's the latest information. However, I've got VC++ 6.0 and the documentation for that function on my MSDN CD says that the failure code used in the same situation is 0xFFFFFFFF. So my guess is that -- unless you've somehow neglected to include windows.h -- your copies of the Windows headers predate the introduction of this constant.

I believe that downloading the latest SDK would remedy this, but Visual C++ 6.0 is not supported by this latest version. So if you're using VC++ 6.0, the easiest thing to do would probably be to define this constant yourself for the time being:

#define INVALID_SET_FILE_POINTER  0xFFFFFFFF
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: