DirectShow 在vs2005中的问题解决之基类编译问题

来源:互联网 发布:婚纱照拍照姿势 知乎 编辑:程序博客网 时间:2024/05/16 00:55

编译BaseClasses

正在编译

dllentry.cpp

D:/Program Files/Microsoft Visual Studio 8/VC/PlatformSDK/Include/winnt.h(222) : error C2146: 语法错误: 缺少“;”(在标识符“PVOID64”的前面)

D:/Program Files/Microsoft Visual Studio 8/VC/PlatformSDK/Include/winnt.h(222) : error C4430: 缺少类型说明符- 假定为int。注意: C++ 不支持默认int

D:/Program Files/Microsoft Visual Studio 8/VC/PlatformSDK/Include/winnt.h(5940) : error C2146: 语法错误: 缺少“;”(在标识符“Buffer”的前面)

D:/Program Files/Microsoft Visual Studio 8/VC/PlatformSDK/Include/winnt.h(5940) : error C4430: 缺少类型说明符- 假定为int。注意: C++ 不支持默认int

D:/Program Files/Microsoft Visual Studio 8/VC/PlatformSDK/Include/winnt.h(5940) : error C4430: 缺少类型说明符- 假定为int。注意: C++ 不支持默认int

D:/DXSDK/Include/uuids.h : warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为Unicode 格式以防止数据丢失

生成日志保存在“file://d:/BaseClasses/Debug_Unicode/BuildLog.htm”

BaseClasses - 5 个错误,个警告

出现错误的地方:

typedef void *PVOID;

typedef void * POINTER_64 PVOID64;

更改:

#define POINTER_64 __ptr64///////gai

typedef void *PVOID;

typedef void * POINTER_64 PVOID64;////

错误:./wxdebug.cpp(567) : error C4430: 缺少类型说明符- 假定为int。注意: C++ 不支持默认int

错误地方:static g_dwLastRefresh = 0;

修改:static int g_dwLastRefresh = 0;

 6编译Capture,无法打开libci.lib

出现错误:LINK : fatal error LNK1104: 无法打开文件“libci.lib”

生成日志保存在“file://d:/DXSDK/Samples/C++/DirectShow/Capture/CaptureTex/Debug/BuildLog.htm”

CaptureTex - 1 个错误,个警告

错误原因:缺少数据库LIBCI.LIB20032005中已经不存在了

解决方案:将库文件指向VC6中的库文件。

特别声明:

有些类似的问题可以通过忽略特定的库来解决问题的,因为有些类库在vs2005中已经不存在了,但是你用到的功能不涉及这一部分内容,但是要特别小心才是!

原创粉丝点击