// This function displays the currently associated WM// Profile for the specified convert objectvoid DisplaySelectedProfileName(IltmmConvert *pConvert){USES_CONVERSION;IltmmWMProfile *pCurrentProfile = NULL;BSTR bstrStringName;HRESULT hr;// try to get the current profilehr = pConvert->get_WMProfile(&pCurrentProfile);if(FAILED(hr))return;if (pCurrentProfile){// get the profile namehr = pCurrentProfile->get_Name(&bstrStringName);if (FAILED(hr)){pCurrentProfile->Release();return;}// display it here::MessageBox(NULL, OLE2W(bstrStringName), TEXT("Profile selected"), MB_ICONINFORMATION);// free the bstrSysFreeString(bstrStringName);// release the profile objectpCurrentProfile->Release();}else{MessageBox(NULL, TEXT("There is no profile currently selected"), TEXT("Profile selected"), MB_ICONINFORMATION);}}
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
