46
Argus Encoder Family Version 2.6 API Developer’s Guide
FMTestApp
{
pFM->Reset();
m_bErrorFlag = false;
}
// Read settings from the main dialog box.
UpdateData(TRUE);
// If no value is entered in the duration edit box, set the default duration to
// thirty seconds.
if( m_Duration.GetLength() < 1 )
m_Duration = _T(“00:00:30:00”);
// Save the file name, file type, and time codes to the registry. Validate the
// mux encode type, reporting if it does not correspond to the file type.
SaveDataToRegistry();
// Load registry settings.
result = pFM->Load();
if( result < 0 )
{
ErrMsg.Format( _T(“Error Loading Parameters From Registry: %ld\n”),
result );
MessageBox(ErrMsg);
return;
}
// Cue all components. Check Results.
result = pFM->Cue();
if( result < 0 )
{
m_bErrorFlag = true;
ErrMsg.Format(_T("Error Cueing Components.\nError Code: %d"), (int)
result);
MessageBox(ErrMsg);
return;
}