编译错误:
在dsound.h文件中:
: error C2146: syntax error : missing ';' before identifier 'dwReserved1'
: error C2501: 'DWORD_PTR' : missing storage-class or type specifiers
: error C2501: 'dwReserved1' : missing storage-class or type specifiers
: error C2146: syntax error : missing ';' before identifier 'dwReserved2'
: error C2501: 'DWORD_PTR' : missing storage-class or type specifiers
: error C2501: 'dwReserved2' : missing storage-class or type specifiers谁知道怎么解决??
在dsound.h文件中:
: error C2146: syntax error : missing ';' before identifier 'dwReserved1'
: error C2501: 'DWORD_PTR' : missing storage-class or type specifiers
: error C2501: 'dwReserved1' : missing storage-class or type specifiers
: error C2146: syntax error : missing ';' before identifier 'dwReserved2'
: error C2501: 'DWORD_PTR' : missing storage-class or type specifiers
: error C2501: 'dwReserved2' : missing storage-class or type specifiers谁知道怎么解决??
如果只是写一个文件,头上必须有#include <windows.h>
(我看了你的错误,连DWORD_PTR都没有定义)
//////////////
还有8分升级!
很可能是没有连入ddraw.lib的错误!!
#include <windowsx.h>
#define DWORD_PTR DWORD
#define LONG_PTR LONG
就编译过去了,这是什么问题?是我的VC配置问题,还是要装新的PlatformSDK?
#include <windows.h>