IltmmPlay::LoadSettingsfromFile Example for C++

#define MAKE_MEDIA_PATH(pFileName) (TEXT("C:\\LEADTOOLS 17.5\\Media\\")TEXT(pFileName))


void LoadPlayerSettingsfromFile(IltmmPlay *pPlay)
{
   // try to load the player settings from a file
   HRESULT hr = pPlay->LoadSettingsFromFile(MAKE_MEDIA_PATH("Settings.lmm"), ltmmPlay_Settings_All);

   if (FAILED(hr))
   {
      MessageBox(NULL, TEXT("Error loading player settings from file"), TEXT("Load Play Settings"), MB_OK);
   }
}