Поделиться через


COleException::m_sc

This data member holds the OLE status code that indicates the reason for the exception.

SCODE m_sc;

Заметки

This variable's value is set by AfxThrowOleException.

For more information on SCODE, see Structure of COM Error Codes in the Windows SDK.

Пример

try 
{
   SomeOleFunc();
}
catch (COleException* pe) 
{
   TRACE (_T("COleException caught. SCODE = %x\n"), pe->m_sc);
   pe->Delete();
}

Требования

Header: afxdisp.h

См. также

Основные понятия

COleException Class

COleException Members

Hierarchy Chart

AfxThrowOleException