First Steps C++

Library Initialization

The library has to be initialized, before any action on the Grabber is permitted.

To initialize the library, open the file "FirstStep.cpp", created by the AppWizard, and go to the CFirstStepApp::InitInstance() method.

if( ! DShowLib::InitLibrary() )
{
    return FALSE;
}
atexit( _DShowLib::ExitLibrary );

The InitLibrary function returns true, if the library could be initialized properly.

The function returns false if:

Next step: Instantiating the Grabber