DirectShow Filter
I tried to port the sample of DirectShow, AsyncFilter, to Windows Mobile 2005 Pocket PC. I added Strmbase.lib to project library list, but still has some symbols that do not get resolved.
CBaseFilter should be in Strmbase.lib. Anyone could give me a hint about this? Thanks.
[3450 byte] By [
shian] at [2008-2-16]
Hi
I'm trying to follow these extra instructions through but have hit the problem that I can't seem to find where to set the __stdcall option - where is this in Visual Studio 2005 (currently I'm still running with Beta 2 but pressures of work allowing I will be upgrading in the next few days...)
Thanks
Stuart
When trying to compile the baseclasses from the ce5 PB, I run into problems (scope of vars, slightly different headers in the WM5 sdk than in CE5 etc). Surely there must be a working Strmbase.lib and streams.h combination out there for WM5, it cannot be that I have to go fix the CE5 stuff to work with VS2005/WM5?
The first few errors when trying to compile the CE5 BaseClasses in a WM5 PPC project:
Error 1 error C2065: 'iDone' : undeclared identifier c:\Documents and Settings\ameyer\My Documents\Visual Studio 2005\Projects\BASECLASSES\outputq.cpp 669
Error 2 error C2039: 'Peek' : is not a member of 'CRendererSampleQueue' c:\Documents and Settings\ameyer\My Documents\Visual Studio 2005\Projects\BASECLASSES\renbaseasync.cpp 413
Error 3 error C2039: 'Peek' : is not a member of 'CRendererSampleQueue' c:\Documents and Settings\ameyer\My Documents\Visual Studio 2005\Projects\BASECLASSES\renbaseasync.cpp 433
Error 4 error C2039: 'Peek' : is not a member of 'CRendererSampleQueue' c:\Documents and Settings\ameyer\My Documents\Visual Studio 2005\Projects\BASECLASSES\renbaseasync.cpp 548
Error 5 error C2039: 'Compact' : is not a member of 'CAggDirectDraw' c:\Documents and Settings\ameyer\My Documents\Visual Studio 2005\Projects\BASECLASSES\videoctl.cpp 124
Error 6 error C2065: 'm_pDirectDraw' : undeclared identifier c:\Documents and Settings\ameyer\My Documents\Visual Studio 2005\Projects\BASECLASSES\videoctl.cpp 126
Error 7 error C2227: left of '->Compact' must point to class/struct/union/generic type c:\Documents and Settings\ameyer\My Documents\Visual Studio 2005\Projects\BASECLASSES\videoctl.cpp 127
Here's how I solved my issues after a few days of frustration....
1. In the compiler options turn off the new "Treat wchar_t as type" option - this gets rid of most of the problems - unless you are linking with (for example) MFC which needs this option set.
2. The one remaining link error is a symbol (can't remember which one) that simply doesn't exist in the debug build - so I've switched to the release build and am working in that instead.... There will be other workarounds for this - including the symbol must exist in some debug library somewhere...
Hope this works for you!
Thanks StuartLodge, but it doesn't work for me yet. And I must turn on the option "Treat wchar_t as type".
Hi shian, have you solved this problem? Can you post any updates? I've been suffering this issue for several days...
And how to set calling convention in VS2005? If VS2003, we can set __cdecl or __stdcall in C/C++ | Advanced | Calling Convention, but it seems that VS2005 doesn't have this option. And VS2005 will not accept /Gz compiler option if we add it manually via command line.
I faced similar problem of unresolved symbols while I was switching from VS 2003 to VS 2005 project. Your post saved me for further frustation.Thanks a lot.