syntax error : identifier 'PSCROLLBARINFO

来源:互联网 发布:阿里云cdn获取真实ip 编辑:程序博客网 时间:2024/05/19 15:25
 

syntax error : identifier 'PSCROLLBARINFO

...

 

这种错误:低版本vc项目移植到高版本vc编译时出现,解决方法

Add


#ifndef _WIN32_WINNT // Allow use of features specific to Windows NT 4 or later.
#define _WIN32_WINNT 0x0501 // Change this to the appropriate value to target Windows 98 and Windows 2000 or later.
#endif

before

#pragma once

 

如果还不行,最好先看看你的项目属性的

c/c++->preprocessor->preprocessor defines, 一般删掉固定的版本定义,

或直接改为WIN32;_WINDOWS;_DEBUG;%(PreprocessorDefinitions)就行了。