void GetConvertSourceAudioType(IltmmConvert *pConvert) { CString strAudioType; BSTR bstr = NULL; // get the source audio type name pConvert->get_SourceAudioType(&bstr); // format display string strAudioType.Format(TEXT("Source audio type GUID is %s"), bstr); // display the source audio type MessageBox(NULL, strAudioType, TEXT("Source Audio Type"), MB_OK); // free the bstr SysFreeString(bstr); }