DirectShow 安装配置
来源:互联网 发布:怎么加入农村淘宝 编辑:程序博客网 时间:2024/06/05 22:52
第二次安装DirectShow了。上一次安装不知花了多少九牛二虎之力才搞懂DirectShow已不在DirectX SDK里面了。真晕,BS M$一下。
首先是下载DirectX SDK February 2005 Extras
然后修改源文件
[Note: This post applies to the Platform SDK for Windows Server 2003 SP1 and Server 2003 R2. These issues were fixed in the Windows SDK for Vista.]
Some of the DirectShow samples break if you install Visual Studio 2005 Beta 2. Most of the errors that I found fall into three categories:
- C4430: Missing type specifier. To conform with C++, undeclared types do not default to int. All types must be declared. Fix: Declare the type, or suppress the warning with the "/wd4430" flag.
- C4996: ' xxxx' was declared deprecated. You may be including an older version of strsafe.h from the DirectX SDK or the Platform SDK. You should include the version installed with Visual Studio. (But it's probably harmless to ignore this warning.)
- C2065: 'xxx': undeclared identifier. To conform with C++, the scope of a variable declared inside a "for" loop is restricted to the loop. Fixes: (a) Move the declaration outside the for loop. (b) Redeclare the variable in multiple scopes, if you don't need it to persist outside the loop. (c) Set the /Zc:forScope flag. (You can find this under Project, Properties, Configuration Properties, C/C++, Language, Force Conformance In For Loop Scope. Set to "No".)
Here are the specific fixes that I made. Warning: I have not thoroughly tested these, and I only tried them under the "Windows XP 32-bit Debug" environment in Platform SDK. You should use your own judgment before making any of these fixes.
- BaseClasses/ctlutil.h (278)
(LONG) operator=(LONG); - BaseClasses/wxdebug.cpp (564)
static DWORD g_dwLastRefresh = 0; - BaseClasses/winutil.cpp (2092)
UINT Count;
for (Count = 0;Count < Result;Count++) { - BaseClasses/outputq.cpp (635)
long iDone = 0;
for (iDone = 0; - Capture/AmCap/amcap.cpp (691)
for(int i = 0; i < NUMELMS(gcap.rgpmAudioMenu); i++) - Capture/AmCap/amcap (2795)
for(int i = 0; i < NUMELMS(gcap.rgpmAudioMenu); i++) - DMODemo/dsutil.cpp (686)
DWORD i = 0;
for( i=0; i<m_dwNumBuffers; i++ ) - dmoimpl.h (622) [In the Platform SDK headers]
for (DWORD dw = 0; dw < NUMBEROFOUTPUTS; dw++) { - DMO/GargleDMO/MedParamBase/param.cpp (91)
for (DWORD dwIndex = 0; dwIndex < cParams; dwIndex++) - DMO/GargleDMO/MedParamBase/param.cpp (309)
CCurveItem *pCurve = NULL;
for (pCurve = pCurveHead; - DMO/GargleDMO/gargle.cpp (145)
for (DWORD i = 0; i < cOutputStreams && SUCCEEDED(hr); ++i) - Filters/Dump/dump.cpp (426)
for (int Loop = 0;Loop < (DataLength % BYTES_PER_LINE);Loop++) - Filters/Gargle/gargle.cpp (212)
static int m_nInstanceCount; // total instances - Filters/RGBFilters/RateSource/ratesource.cpp (382)
for( int y = 0 ; y < DEFAULT_HEIGHT ; y++ ) - Filters/RGBFilters/RateSource/ratesource.cpp (387)
for( int y = 0 ; y < DEFAULT_WIDTH ; y++ ) - VMR/VMRXclBasic and VMR/Ticker: LNK1181: cannot open input file 'dxguid.lib'. This was an error in the makefile. Change to read:
DXLIB="$(DXSDK_DIR)/Lib/x86" (currently says "x32") - VMR/VMRXcl and VMR/VMRMulti: C1083: Cannot open include file: 'd3dxmath.h': No such file or directory. This is an old DX header that is no longer included in DX or in Visual Studio. Unfortunately the only fix is to download an older version of the DirectX SDK.
- VMR9/MultiVMR9/GamePlayer/character.cpp (383)
DWORD i = 0;
for (i = 0; i < pMeshContainer->NumInfl; ++i) - VMR9/MultiVMR9/DLL/MixerControl.h (28)
static const DWORD MultiVMR9Mixer_DefaultFVF = D3DFVF_XYZ | D3DFVF_DIFFUSE | D3DFVF_TEX1; - VMR9/VMRAllocator: error LNK2019: unresolved external symbol "wchar_t * __stdcall _com_util::ConvertStringToBSTR(char const *)" (etc). Add this to the makefile:
LINK32_LIBS = /
comsuppw.lib /
shell32.lib /
这样就应该可以在VC6 VS2005 VS2008里面开发了(不负责任猜想)
收工
- DirectShow 安装配置
- DirectShow下载安装配置心得
- DirectShow下载安装配置心得
- DirectShow下载安装配置心得
- DirectShow下载安装配置心得
- DirectShow下载安装配置心得
- DXSDK 9.0 + VS2005 + DirectShow 安装配置
- VS2008下安装与配置DirectShow
- Windows SDK 7.1 (包含directshow)安装配置
- directshow 配置
- directshow配置
- Directshow配置
- directshow 配置
- DirectShow安装
- DirectShow SDK安装以及在vs2010上的配置
- 配置directshow--细节
- directshow之vs2005配置
- DirectShow开发环境配置
- log4j文件输出的路径
- CString 使用详解
- Symbol 開發初體驗
- 产品1——渗透泵激光打孔机
- BI--Currency translation in Bex
- DirectShow 安装配置
- 测试ASP通过, 准备用回以前系统的用户登录模块.
- ECC的代码实现——转载
- 从一个漏洞谈到ptrace的漏洞发现及利用方法
- 使用C#指挥CPU占用率曲线
- 短信控件开发总结——Delphi+SPcomm 短信猫型号:ETPro309 支持CDMA
- Flex 父子窗口通信的问题
- 远古404 URL资源没有找到和服务器连接数已满问题解决办法
- string,array的属性和方法简单一览