Partager via


AfxThrowOleException

Creates an object of type COleException and throws an exception.

void AFXAPI AfxThrowOleException( 
   SCODE sc  
); 
void AFXAPI AfxThrowOleException( 
   HRESULT hr  
);

Paramètres

  • sc
    An OLE status code that indicates the reason for the exception.

  • hr
    Handle to a result code that indicates the reason for the exception.

Notes

The version that takes an HRESULT as an argument converts that result code into the corresponding SCODE. For more information on HRESULT and SCODE, see Structure of COM Error Codes in the Kit de développement logiciel Windows.

Configuration requise

Header: <afxdisp.h>

Voir aussi

Référence

COleException, classe

JET (MFC)

Concepts

macro MFC et Globals