error C2146: syntax error : missing ';' before identifier 'PVOID64'
由 directdraw 的升级引起
解决方法:在winnt.h中加上以下语句
#define POINTER_64 __ptr64
typedef void *PVOID;
typedef void * POINTER_64 PVOID64;
本文介绍了解决Visual Studio编译时出现的C2146语法错误的方法,该错误通常由于DirectDraw升级引发。通过在winnt.h文件中添加特定的宏定义和类型定义来修正错误。
error C2146: syntax error : missing ';' before identifier 'PVOID64'
由 directdraw 的升级引起
解决方法:在winnt.h中加上以下语句
#define POINTER_64 __ptr64
typedef void *PVOID;
typedef void * POINTER_64 PVOID64;
3622
254
1620