AfxThrowOleException
voidAFXAPIAfxThrowOleException(SCODEsc**);**
voidAFXAPIAfxThrowOleException(HRESULThr**);**
#include <afxdisp.h>
Parameters
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.
Remarks
Creates an object of type COleException and throws an exception. 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 in the Platform SDK.
See Also COleException, THROW