hr=       pUI->SetControlObject((IDispatch**)&p_App->p_SimMulti);
if(p_Multisim)p_Multisim.Release();
if(hr!=S_OK)
{
    hr = pUI->QueryInterface(IID_ISupportErrorInfo,(LPVOID*)&iErrInfo);
    if( iErrInfo->InterfaceSupportsErrorInfo(IID_IDeviceLinker) == S_OK)
    {
        IErrorInfo* iErrInfo;
        hr = GetErrorInfo(NULL,&iErrInfo);
        BSTR bstr = NULL;
        iErrInfo->GetDescription(&bstr);
        _bstr_t Bstr(bstr,false);
        m_str=  bstr;
        s_Setting.Format("SetControlObject()\r\n%s", m_str);
        MessageBox(s_Setting,m_fmt,MB_OK);
       }
}

32 Comments
댓글 남기기