Vela Argus 2000-1500 Developer's Manual page 51

Application programming interface documentation for argus single-board audio/video encoders. mpeg-2 audio/video encoding systems
Table of Contents

Advertisement

Chapter 4 — Sample Applications
IArgusFMPtr
CFilterManagerEvents *m_pFilterManagerEvents;
CFMTestAppDlg
};
If the above class is defined, an instance of the m_pIFilterMgr interface can be
instantiated using the Create method, listed below. For now, concentrate just on
the call that creates the IArgusFMPtr, in bold face. Other sections of the
method, especially those relating to Events, will be discussed in later sections of
this document.
////////////////////////////////////////////////////////////////////////////////////
// Create()
//
// After initialing COM, the Create() method creates an instance of
// an interface to FilterManager and another to FilterManager
// Events. The Filter Manager interface defines all of the basic
// encoder calls: Initialize, Cue, Start, Pause, Resume,....
// The events interface defines the callbacks through which the filter
// manager component will communicate with the sample GUI.
////////////////////////////////////////////////////////////////////////////////////
CFMInterface::Create( CFMTestAppDlg *pApp )
{
HRESULT hresult;
pWin = pApp;
pID = NULL;
// Initialize COM.
hresult =CoInitialize(NULL);
if(FAILED(hresult))
{
return FALSE;
}
// Create an instance of the server object
hresult = m_pIFilterMgr.CreateInstance(CLSID_ArgusFM);
if( FAILED(hresult))
return FALSE;
// Create the event sink object.
m_pIFilterMgrEvents = new CFilterManagerEvents();
m_pIFilterMgr;
*pWin;
43
Create()
FMTestApp

Advertisement

Table of Contents
loading

Table of Contents