我安装了dx90bsdk.exe后,进行下面的配置:
include files中
C:\DXSDK\SAMPLES\C++\DIRECTSHOW\BIN
C:\DXSDK\SAMPLES\C++\DIRECTSHOW\BASECLASSES
C:\DXSDK\SAMPLES\C++\DIRECTSHOW\COMMON
Library files中
C:\DXSDK\LIB
编译还出现下面的错误:
e:\客户端\client\video\directdraw\directdraw.h(48) : error C2146: syntax error : missing ';' before identifier 'ddsd'
e:\客户端\client\video\directdraw\directdraw.h(48) : error C2501: 'DDSURFACEDESC2' : missing storage-class or type specifiers
e:\客户端\client\video\directdraw\directdraw.h(48) : error C2146: syntax error : missing ';' before identifier 'ddsd'
e:\客户端\client\video\directdraw\directdraw.h(48) : error C2501: 'DDSURFACEDESC2' : missing storage-class or type specifiers
e:\客户端\client\video\directdraw\directdraw.h(48) : error C2501: 'ddsd' : missing storage-class or type specifiers
e:\客户端\client\video\directdraw\directdraw.h(50) : error C2146: syntax error : missing ';' before identifier 'lpDD'
e:\客户端\client\video\directdraw\directdraw.h(50) : error C2501: 'LPDIRECTDRAW7' : missing storage-class or type specifiers
e:\客户端\client\video\directdraw\directdraw.h(50) : error C2501: 'lpDD' : missing storage-class or type specifiers
e:\客户端\client\video\directdraw\directdraw.h(52) : error C2146: syntax error : missing ';' before identifier 'lpDDSPrimary'
e:\客户端\client\video\directdraw\directdraw.h(52) : error C2501: 'LPDIRECTDRAWSURFACE7' : missing storage-class or type specifiers
e:\客户端\client\video\directdraw\directdraw.h(52) : error C2501: 'lpDDSPrimary' : missing storage-class or type specifiers
e:\客户端\client\video\directdraw\directdraw.h(54) : error C2146: syntax error : missing ';' before identifier 'lpDDSOffscreen'
e:\客户端\client\video\directdraw\directdraw.h(54) : error C2501: 'LPDIRECTDRAWSURFACE7' : missing storage-class or type specifiers
e:\客户端\client\video\directdraw\directdraw.h(54) : error C2501: 'lpDDSOffscreen' : missing storage-class or type specifiers
e:\客户端\client\client.cpp(641) : warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
e:\客户端\client\client.cpp(792) : warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
Conference.cpp
e:\客户端\client\video\directdraw\directdraw.h(48) : error C2146: syntax error : missing ';' before identifier 'ddsd'
e:\客户端\client\video\directdraw\directdraw.h(48) : error C2501: 'DDSURFACEDESC2' : missing storage-class or type specifiers
e:\客户端\client\video\directdraw\directdraw.h(48) : error C2501: 'ddsd' : missing storage-class or type specifiers
e:\客户端\client\video\directdraw\directdraw.h(50) : error C2146: syntax error : missing ';' before identifier 'lpDD'
e:\客户端\client\video\directdraw\directdraw.h(50) : error C2501: 'LPDIRECTDRAW7' : missing storage-class or type specifiers
e:\客户端\client\video\directdraw\directdraw.h(50) : error C2501: 'lpDD' : missing storage-class or type specifiers
e:\客户端\client\video\directdraw\directdraw.h(52) : error C2146: syntax error : missing ';' before identifier 'lpDDSPrimary'
e:\客户端\client\video\directdraw\directdraw.h(52) : error C2501: 'LPDIRECTDRAWSURFACE7' : missing storage-class or type specifiers
e:\客户端\client\video\directdraw\directdraw.h(52) : error C2501: 'lpDDSPrimary' : missing storage-class or type specifiers
e:\客户端\client\video\directdraw\directdraw.h(54) : error C2146: syntax error : missing ';' before identifier 'lpDDSOffscreen'
e:\客户端\client\video\directdraw\directdraw.h(54) : error C2501: 'LPDIRECTDRAWSURFACE7' : missing storage-class or type specifiers
e:\客户端\client\video\directdraw\directdraw.h(54) : error C2501: 'lpDDSOffscreen' : missing storage-class or type specifiers
DirectDraw.cpp
e:\客户端\client\video\directdraw\directdraw.h(48) : error C2146: syntax error : missing ';' before identifier 'ddsd'
e:\客户端\client\video\directdraw\directdraw.h(48) : error C2501: 'DDSURFACEDESC2' : missing storage-class or type specifiers
e:\客户端\client\video\directdraw\directdraw.h(48) : error C2501: 'ddsd' : missing storage-class or type specifiers
e:\客户端\client\video\directdraw\directdraw.h(50) : error C2146: syntax error : missing ';' before identifier 'lpDD'
e:\客户端\client\video\directdraw\directdraw.h(50) : error C2501: 'LPDIRECTDRAW7' : missing storage-class or type specifiers
e:\客户端\client\video\directdraw\directdraw.h(50) : error C2501: 'lpDD' : missing storage-class or type specifiers
e:\客户端\client\video\directdraw\directdraw.h(52) : error C2146: syntax error : missing ';' before identifier 'lpDDSPrimary'
e:\客户端\client\video\directdraw\directdraw.h(52) : error C2501: 'LPDIRECTDRAWSURFACE7' : missing storage-class or type specifiers
e:\客户端\client\video\directdraw\directdraw.h(52) : error C2501: 'lpDDSPrimary' : missing storage-class or type specifiers
e:\客户端\client\video\directdraw\directdraw.h(54) : error C2146: syntax error : missing ';' before identifier 'lpDDSOffscreen'
e:\客户端\client\video\directdraw\directdraw.h(54) : error C2501: 'LPDIRECTDRAWSURFACE7' : missing storage-class or type specifiers
e:\客户端\client\video\directdraw\directdraw.h(54) : error C2501: 'lpDDSOffscreen' : missing storage-class or type specifiers
e:\客户端\client\video\directdraw\directdraw.cpp(22) : error C2039: 'ddsd' : is not a member of 'CDirectDraw'
    执行 cl.exe 时错误
........
Conference.exe - 1 error(s), 0 warning(s)以前我也用过这个代码,没问题,不过现在已经忘记了。不知配置有什么问题?请高手指点。谢谢!!