Products | Support | Send comments on this topic. | Email a link to this topic. | Back to Getting Started | Help Version 18.0.10.24
LEADTOOLS Multimedia API Help

IltmmWMProfile::GetStreamByNumber Example for C++

Show in webframe

For complete code, refer to the CNVWM demo.

void RemoveStreamByNumber(long lStreamNumber, IltmmWMProfile *pProfile)
{
   IltmmWMStreamConfig *pStreamConfig = NULL;
   WCHAR wstrPrompt[64];
   
   // try to get the profile stream by number 
   pProfile->GetStreamByNumber(lStreamNumber, &pStreamConfig);
   
   if (pStreamConfig)
   {
      wsprintf(wstrPrompt, TEXT("Remove stream number %d ?"), lStreamNumber);
      if (MessageBox(NULL, wstrPrompt, TEXT("Confirm"), MB_YESNO) == IDYES)
      {
         pProfile->RemoveStream(pStreamConfig);
         // or, you can remove it by :
         // pProfile->RemoveStreamByNumber(lStreamNumber);
         pStreamConfig->Release();
      }
   }
}
Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.