dshow link error in mobile dshow develop

本文解决在使用VS2005开发Windows Mobile DirectShow应用时遇到的链接错误问题,如CTransInPlaceFilter构造函数等未解析外部符号错误。通过调整项目属性设置和链接到调试版本的strmbase.lib库来解决。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Use windows monbile develop  a filter for DirectShow app find some link errors(vs2005):

 

  • error LNK2001: unresolved external symbol "public: __cdecl CTransInPlaceFilter::CTransInPlaceFilter(wchar_t*,struct IUnknown *,struct _GUID const &,long *)"(??0CTransInPlaceFilter@@QAA@PA_WPAUIUnknown@@ABU_GUID@@PAJ@Z) 
  • error LNK2001: unresolved external symbol "public: virtualunsigned long __cdecl CBaseFilter::NonDelegatingRelease(void)"(?NonDelegatingRelease@CBaseFilter@@UAAKXZ) 
  • error LNK2001: unresolved external symbol "public: virtuallong __cdecl CTransformFilter::FindPin(wchar_tconst *,struct IPin * *)"(?FindPin@CTransformFilter@@UAAJPB_WPAPAUIPin@@@Z) 
  • error LNK2001: unresolved external symbol "public: virtuallong __cdecl CBaseFilter::JoinFilterGraph(structIFilterGraph *,wchar_t const *)"(?JoinFilterGraph@CBaseFilter@@UAAJPAUIFilterGraph@@PB_W@Z) 
  • error LNK2001: unresolved external symbol "public: virtuallong __cdecl CBaseFilter::QueryVendorInfo(wchar_t* *)" (?QueryVendorInfo@CBaseFilter@@UAAJPAPA_W@Z) 
  • error LNK2001: unresolved external symbol "void __cdecl DbgBreakPoint(wchar_tconst *,wchar_t const *,int)" (?DbgBreakPoint@@YAXPB_W0H@Z)

 

 

解决方法如下:

1.Under Project Propeties/C++/Language change the compiler option  "Treat wchar_t as builtin type" to No and rebuild

 

2. The second part of the problem is that you need to link against the debug version of strmbase.lib. You can get one by downloading and installing a trial version of Windows CE 6 Platform Builder or from here

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值