BSTR baseUrl = SysAllocString(L"www.google.com"); BSTR sessionName = SysAllocString(L""); VARIANT_BOOL returnVal; result = viewer->pVtbl->launchSession(viewer, baseUrl, sessionName, &returnVal); if (result != S_OK) { printf("COM call to WebViewer.launchSession failed\n"); SysFreeString(baseUrl); SysFreeString(sessionName); return 1; }
_com_util::ConvertStringToBSTR(lpszText);
MultiByteToWideChar
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)