编译一下它的Samples,n多错误。我已经把Include,Lib目录加进来的了,link里面
也有对应的lib文件了。还需要哪些其他的呢
--------------------Configuration: CaptureSound - Win32 Debug--------------------
Compiling...
capturesound.cpp
..\..\common\include\DSUtil.h(50) : error C2146: syntax error : missing ';' before identifier 'm_pDS'
..\..\common\include\DSUtil.h(50) : error C2501: 'LPDIRECTSOUND8' : missing storage-class or type specifiers
..\..\common\include\DSUtil.h(50) : error C2501: 'm_pDS' : missing storage-class or type specifiers
..\..\common\include\DSUtil.h(57) : error C2146: syntax error : missing ';' before identifier 'GetDirectSound'
..\..\common\include\DSUtil.h(57) : error C2433: 'LPDIRECTSOUND8' : 'inline' not permitted on data declarations
..\..\common\include\DSUtil.h(57) : error C2501: 'LPDIRECTSOUND8' : missing storage-class or type specifiers
..\..\common\include\DSUtil.h(57) : warning C4183: 'GetDirectSound': member function definition looks like a ctor, but name does not match enclosing class
D:\DXSDK\Samples\C++\DirectSound\CaptureSound\capturesound.cpp(98) : error C2664: 'CreateDialogParamA' : cannot convert parameter 4 from 'long (struct HWND__ *,unsigned int,unsigned int,long)' to 'int (__stdcall *)(struct HWND__ *,unsigned int,unsig
ned int,long)'
        None of the functions with this name in scope match the target type
D:\DXSDK\Samples\C++\DirectSound\CaptureSound\capturesound.cpp(103) : error C2664: 'DialogBoxParamA' : cannot convert parameter 4 from 'long (struct HWND__ *,unsigned int,unsigned int,long)' to 'int (__stdcall *)(struct HWND__ *,unsigned int,unsigne
d int,long)'
        None of the functions with this name in scope match the target type
D:\DXSDK\Samples\C++\DirectSound\CaptureSound\capturesound.cpp(128) : error C2664: 'DialogBoxParamA' : cannot convert parameter 4 from 'long (struct HWND__ *,unsigned int,unsigned int,long)' to 'int (__stdcall *)(struct HWND__ *,unsigned int,unsigne
d int,long)'
        None of the functions with this name in scope match the target type
dsutil.cpp
..\..\common\include\DSUtil.h(50) : error C2146: syntax error : missing ';' before identifier 'm_pDS'
..\..\common\include\DSUtil.h(50) : error C2501: 'LPDIRECTSOUND8' : missing storage-class or type specifiers
..\..\common\include\DSUtil.h(50) : error C2501: 'm_pDS' : missing storage-class or type specifiers
..\..\common\include\DSUtil.h(57) : error C2146: syntax error : missing ';' before identifier 'GetDirectSound'
..\..\common\include\DSUtil.h(57) : error C2433: 'LPDIRECTSOUND8' : 'inline' not permitted on data declarations
..\..\common\include\DSUtil.h(57) : error C2501: 'LPDIRECTSOUND8' : missing storage-class or type specifiers
..\..\common\include\DSUtil.h(57) : warning C4183: 'GetDirectSound': member function definition looks like a ctor, but name does not match enclosing class
D:\DXSDK\Samples\C++\common\src\dsutil.cpp(27) : error C2065: 'm_pDS' : undeclared identifier
D:\DXSDK\Samples\C++\common\src\dsutil.cpp(39) : error C2227: left of '->Release' must point to class/struct/union
D:\DXSDK\Samples\C++\common\src\dsutil.cpp(55) : error C2227: left of '->Release' must point to class/struct/union
D:\DXSDK\Samples\C++\common\src\dsutil.cpp(58) : error C2065: 'DirectSoundCreate8' : undeclared identifier
D:\DXSDK\Samples\C++\common\src\dsutil.cpp(62) : error C2227: left of '->SetCooperativeLevel' must point to class/struct/union
D:\DXSDK\Samples\C++\common\src\dsutil.cpp(99) : error C2227: left of '->CreateSoundBuffer' must point to class/struct/union
D:\DXSDK\Samples\C++\common\src\dsutil.cpp(143) : error C2227: left of '->CreateSoundBuffer' must point to class/struct/union
D:\DXSDK\Samples\C++\common\src\dsutil.cpp(218) : error C2039: 'guid3DAlgorithm' : is not a member of '_DSBUFFERDESC'
        C:\Program Files\MSVS\VC98\INCLUDE\dsound.h(96) : see declaration of '_DSBUFFERDESC'
D:\DXSDK\Samples\C++\common\src\dsutil.cpp(223) : error C2227: left of '->CreateSoundBuffer' must point to class/struct/union
D:\DXSDK\Samples\C++\common\src\dsutil.cpp(227) : error C2065: 'DS_NO_VIRTUALIZATION' : undeclared identifier
D:\DXSDK\Samples\C++\common\src\dsutil.cpp(246) : error C2065: 'DSBCAPS_CTRLFX' : undeclared identifier
D:\DXSDK\Samples\C++\common\src\dsutil.cpp(250) : error C2227: left of '->DuplicateSoundBuffer' must point to class/struct/union
D:\DXSDK\Samples\C++\common\src\dsutil.cpp(261) : error C2227: left of '->CreateSoundBuffer' must point to class/struct/union
D:\DXSDK\Samples\C++\common\src\dsutil.cpp(342) : error C2039: 'guid3DAlgorithm' : is not a member of '_DSBUFFERDESC'
        C:\Program Files\MSVS\VC98\INCLUDE\dsound.h(96) : see declaration of '_DSBUFFERDESC'
D:\DXSDK\Samples\C++\common\src\dsutil.cpp(345) : error C2227: left of '->CreateSoundBuffer' must point to class/struct/union
D:\DXSDK\Samples\C++\common\src\dsutil.cpp(358) : error C2227: left of '->DuplicateSoundBuffer' must point to class/struct/union
D:\DXSDK\Samples\C++\common\src\dsutil.cpp(369) : error C2227: left of '->CreateSoundBuffer' must point to class/struct/union
D:\DXSDK\Samples\C++\common\src\dsutil.cpp(438) : error C2039: 'guid3DAlgorithm' : is not a member of '_DSBUFFERDESC'
        C:\Program Files\MSVS\VC98\INCLUDE\dsound.h(96) : see declaration of '_DSBUFFERDESC'
D:\DXSDK\Samples\C++\common\src\dsutil.cpp(441) : error C2227: left of '->CreateSoundBuffer' must point to class/struct/union
Error executing cl.exe.