View Full Version : Bulding DShow graph with MV Network Source and MV Network Renderer

October 7, 2004, 16:07:20
I'm trying to build a DirectShow graph with VC++ .NET using MV Network Source and MV Network Renderer.
I'm testing a demo MontiVision Development Kit for evaluating buying these components.
I have linking problem with CLSID_MVNetworkSource and
Are these some lib or dll to include?

Please help me

#include "IMVNetworkSource.h"
#include "MVFilterGUIDs.h"

BaseFilter *m_pBroadCastSource;///< DBroadCast Source Filter
hr = CoCreateInstance(CLSID_MVNetworkSource, 0, CLSCTX_INPROC_SERVER,
IID_IBaseFilter, reinterpret_cast<void**>(&m_pBroadCastSource));
hr = m_pFg->AddFilter(m_pBroadCastSource, L"MV Network Source");

Marc Cymontkowski
October 8, 2004, 10:00:03
Hi Fabrini,

You have to include the MVFilterGUIDs.h file. Anyway, you should use the MV.h file, it includes all the required files for you.

Best Regards,

Marc Cymontkowski

October 8, 2004, 11:11:33
I include mv.h in VC++ .NET my project, but the linker error:
"error LNK2001: external symbol _CLSID_MVNetworkRenderer not resolved " persist.

Linker error seems to requst a .lib or .dll or .tlb file to add or import.

Have you sample codes including Motivision filter in a filter graph build with c++ code (using RenderStream, AddFilter, ecc DShow function)?

Best Regard

Marc Cymontkowski
October 8, 2004, 11:37:32
Dear Fabrini,

You need to include the initguid.h file before the mv.h file.

#include <initguid.h>
#include <mv.h>

We do not have a special sample app on how to use the filters in DirectShow, the filters are used like every other DirectShow filter.

Best Regards,

Marc Cymontkowski