S> BSTR test_lResult = SysAllocString(L""); S> pDotNetCOMPtr2->say(&test_lResult); S> myfile<<"\nCOM6="<<test_lResult; //тут выводит "00070F84"