gyrosandmaronen
July 5, 2007, 14:58:16
I was able to use the function LoadConfig not successfull. The application becam an error, on this function. I use Visual C++ MFC.
My Code
IMVSCFilterGraphPtr graph;
graph = m_controlVideo.GetControlUnknown();
if(graph != NULL)
{
// error
}
HRESULT hr;
CString szPath = "D:\\gerber\\Flight\\all.mvp";
if(graph != NULL)
{
hr = graph->LoadConfig(szPath.AllocSysString());
if(SUCCEEDED(hr))
{
hr = graph->Start(); // start filter graph
}
}
The pointer graph is every time 0.
m_controlVideo is a Membervariable from typ SMVSmartControl.
I worked exactly like the turtorial. Where is the mistake?
Thanke you in advance...
Sorry for my bad english!!!
Best regards
gyros
My Code
IMVSCFilterGraphPtr graph;
graph = m_controlVideo.GetControlUnknown();
if(graph != NULL)
{
// error
}
HRESULT hr;
CString szPath = "D:\\gerber\\Flight\\all.mvp";
if(graph != NULL)
{
hr = graph->LoadConfig(szPath.AllocSysString());
if(SUCCEEDED(hr))
{
hr = graph->Start(); // start filter graph
}
}
The pointer graph is every time 0.
m_controlVideo is a Membervariable from typ SMVSmartControl.
I worked exactly like the turtorial. Where is the mistake?
Thanke you in advance...
Sorry for my bad english!!!
Best regards
gyros