c2061 dword 语法错误_SDK中sample的编译错误

编译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;

编译Capture

出现错误:LINK : fatal error LNK1104:

无法打开文件“libci.lib”

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

CaptureTex - 1 个错误,个警告

错误原因:缺少数据库LIBCI.LIB在2003和2005中已经不存在了

编译DMODEMO

错误:

..\..\..\Common\Src\dsutil.cpp(686) :

error C2065: “i”: 未声明的标识符

错误的地方:

if( i != m_dwNumBuffers )

return m_apDSBuffer[ i ];

else

return m_apDSBuffer[ rand() % m_dwNumBuffers ];

更改:在前面添加 unsigned char i;/

编译DMOSAMPLE

d:\DXSDK\include\dmoimpl.h(622) : error

C2065: “dw”: 未声明的标识符

d:\DXSDK\include\dmoimpl.h(588): 编译类模板成员函数“HRESULT

IMediaObjectImpl<_derived_>::ProcessOutput(DWORD,DWORD,DMO_OUTPUT_DATA_BUFFER

*,DWORD *)”时

with

[

_DERIVED_=CSample,

NUMBEROFINPUTS=1,

NUMBEROFOUTPUTS=2

]

d:\dxsdk\samples\c++\directshow\dmo\dmosample\Sample.h(21):

参见对正在编译的类模板实例化“IMediaObjectImpl<_derived_>”的引用

with

[

_DERIVED_=CSample,

NUMBEROFINPUTS=1,

NUMBEROFOUTPUTS=2

]

d:\DXSDK\include\dmoimpl.h(623) : error

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值