今天用directsound做录音软件
编译时发生错误:
error C2146: syntax error : missing ';' before identifier 'PVOID64'
解决办法:
在winnt.h中
typedef void *PVOID;
typedef void * POINTER_64 PVOID64;
前面加入
#ifndef POINTER_64
#define POINTER_64 __ptr64
#endif
DirectSound录音软件编译错误解决方案
本文介绍了一种使用DirectSound进行录音软件开发时遇到的编译错误,并提供了具体的解决办法。错误出现在预编译过程中,涉及winnt.h文件中的类型定义。通过在头文件前添加特定的宏定义可以解决此问题。
今天用directsound做录音软件
编译时发生错误:
error C2146: syntax error : missing ';' before identifier 'PVOID64'
解决办法:
在winnt.h中
typedef void *PVOID;
typedef void * POINTER_64 PVOID64;
前面加入
#ifndef POINTER_64
#define POINTER_64 __ptr64
#endif
1624

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