Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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