VC++中使用DirectShow环境配置
2007-04-11 16:54
363 查看
1、将DirectX包安装在C盘根目录下:C:/DXSDK
2、将 C:/DXSDK/Include 、C:/DXSDK/Samples/C++/DirectShow/BaseClasses加入VC的include下
(Tools->Options->Directories)
3、这个时候编译DirectShow的程序,可能会出现以下错误:
--------------------Configuration: vdclient - Win32 Debug--------------------
Compiling...
CDXGraph.cpp
c:/dxsdk/include/strmif.h(1018) : error C2146: syntax error : missing ';' before identifier 'HSEMAPHORE'
c:/dxsdk/include/strmif.h(1018) : fatal error C1004: unexpected end of file found
ClientSocket.cpp
c:/dxsdk/include/strmif.h(1018) : error C2146: syntax error : missing ';' before identifier 'HSEMAPHORE'
c:/dxsdk/include/strmif.h(1018) : fatal error C1004: unexpected end of file found
ListeningSocket.cpp
c:/dxsdk/include/strmif.h(1018) : error C2146: syntax error : missing ';' before identifier 'HSEMAPHORE'
c:/dxsdk/include/strmif.h(1018) : fatal error C1004: unexpected end of file found
vdclient.cpp
c:/dxsdk/include/strmif.h(1018) : error C2146: syntax error : missing ';' before identifier 'HSEMAPHORE'
c:/dxsdk/include/strmif.h(1018) : fatal error C1004: unexpected end of file found
vdclientDlg.cpp
c:/dxsdk/include/strmif.h(1018) : error C2146: syntax error : missing ';' before identifier 'HSEMAPHORE'
c:/dxsdk/include/strmif.h(1018) : fatal error C1004: unexpected end of file found
Generating Code...
Error executing cl.exe.
Creating browse info file...
BSCMAKE: error BK1506 : cannot open file './Debug/CDXGraph.sbr': No such file or directory
Error executing bscmake.exe.
vdclient.exe - 11 error(s), 0 warning(s)
4、解决的办法是,将#include "c:/dxsdk/include/strmif.h"加入VC的"stdafx.h"文件中
5、编译运行,如果成功的话,再把#include "c:/dxsdk/include/strmif.h"从"stdafx.h"中删除掉
6、OK!
2、将 C:/DXSDK/Include 、C:/DXSDK/Samples/C++/DirectShow/BaseClasses加入VC的include下
(Tools->Options->Directories)
3、这个时候编译DirectShow的程序,可能会出现以下错误:
--------------------Configuration: vdclient - Win32 Debug--------------------
Compiling...
CDXGraph.cpp
c:/dxsdk/include/strmif.h(1018) : error C2146: syntax error : missing ';' before identifier 'HSEMAPHORE'
c:/dxsdk/include/strmif.h(1018) : fatal error C1004: unexpected end of file found
ClientSocket.cpp
c:/dxsdk/include/strmif.h(1018) : error C2146: syntax error : missing ';' before identifier 'HSEMAPHORE'
c:/dxsdk/include/strmif.h(1018) : fatal error C1004: unexpected end of file found
ListeningSocket.cpp
c:/dxsdk/include/strmif.h(1018) : error C2146: syntax error : missing ';' before identifier 'HSEMAPHORE'
c:/dxsdk/include/strmif.h(1018) : fatal error C1004: unexpected end of file found
vdclient.cpp
c:/dxsdk/include/strmif.h(1018) : error C2146: syntax error : missing ';' before identifier 'HSEMAPHORE'
c:/dxsdk/include/strmif.h(1018) : fatal error C1004: unexpected end of file found
vdclientDlg.cpp
c:/dxsdk/include/strmif.h(1018) : error C2146: syntax error : missing ';' before identifier 'HSEMAPHORE'
c:/dxsdk/include/strmif.h(1018) : fatal error C1004: unexpected end of file found
Generating Code...
Error executing cl.exe.
Creating browse info file...
BSCMAKE: error BK1506 : cannot open file './Debug/CDXGraph.sbr': No such file or directory
Error executing bscmake.exe.
vdclient.exe - 11 error(s), 0 warning(s)
4、解决的办法是,将#include "c:/dxsdk/include/strmif.h"加入VC的"stdafx.h"文件中
5、编译运行,如果成功的话,再把#include "c:/dxsdk/include/strmif.h"从"stdafx.h"中删除掉
6、OK!
相关文章推荐
- 给vc配置DirectShow的开发环境
- 实战基于Leap Motion体感外设使用Win32(VC++)环境配置
- VC DirectShow开发环境变量配置及问题
- 在vc中使用xtremetoolkit界面库-----安装及环境配置
- VC环境下(非QT环境)使用Qt的配置方法
- 在vc中使用xtremetoolkit界面库-----安装及环境配置
- 用DirectShow时VC的环境配置
- 在vc中使用xtremetoolkit界面库-----安装及环境配置
- 在Win7 32位系统下,VC++ 6.0中配置OpenGL使用环境
- [VC/MFC]directX(directshow)的环境配置
- 在vc中使用xtremetoolkit界面库-----安装及环境配置
- [VC/MFC]directX(directshow)的环境配置
- [VC/MFC]directX(directshow)的环境配置
- Berkeley db笔记一 使用(VC下环境配置)
- DirectShow入门文章及VC环境配置
- VC60下的STLport 的使用环境配置步骤
- directShow vc环境配置说明
- VC6++和VS2003/2005下的DOXYGEN注释宏及其配置使用环境
- VC使用MSXML DOM的开发环境配置 (备忘,原文来自MSDN)
- VC环境下使用HALCON图像处理库的配置与基本操作