我安装了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)以前我也用过这个代码,没问题,不过现在已经忘记了。不知配置有什么问题?请高手指点。谢谢!!
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)以前我也用过这个代码,没问题,不过现在已经忘记了。不知配置有什么问题?请高手指点。谢谢!!
解决方案 »
- CComBSTR是线程安全的吗?
- 关于PostMessage模拟鼠标的问题
- 非全屏的DirectDraw能提高速度,请指教!
- 求一电子书 "Microsoft_VisualC++6.0_MFC类库参考手册(一)(上)(下)"
- 请大家进来帮看看,这段代码!!!!!
- 今天去面试,面试的居然说不能这样创建SOCKET s = socket(...),哈哈,笑死了,还说让我看MSDN。
- 基于对话框的程序,在最小化后,任务栏上怎么加上图标?
- 请教大虾:在单文档中如何使用activeskin
- 关于拦截文件操作的API的钩子程序求教:qq:55020921(再问)
- 一个简单的端口扫描器
- 如何用SendMessage或PostMessage发另一个窗口发送alt+回车
- 如何实现沿椭圆轨迹的运动
C:\DXSDK\Include只要这个就够了