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)就行了。
本文详细介绍了在将低版本VC项目移植到高版本VC编译时遇到的语法错误,包括如何通过调整预处理器定义来解决syntaxerror:identifier'PSCROLLBARINFO等问题。同时提供了解决方案,涉及修改预处理器定义、检查并删除固定的版本定义等步骤。
8万+

被折叠的 条评论
为什么被折叠?



