Freigeben über


COleException::m_sc

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

SCODE m_sc;

Remarks

This variable's value is set by AfxThrowOleException.

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

Example

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

Requirements

Header: afxdisp.h

See Also

Reference

COleException Class

Hierarchy Chart

AfxThrowOleException