LEADTOOLS Multimedia API Help > Programming with LEADTOOLS Multimedia > C++ Code > ILMDVRSink::StartBackupToFile Example for C++ |
#define MAKE_MEDIA_PATH(pFileName) (TEXT("C:\\LEADTOOLS 18\\Media\\")TEXT(pFileName)) void OnBackupToFile(ILMDVRSink* pSink) { BSTR targetFile = ::SysAllocString(MAKE_MEDIA_PATH("BackupVideo.MPG")); pSink->StartBackupToFile(targetFile, 0); ::SysFreeString(targetFile); }