System.Win.ComObj.OleCheck
Delphi
procedure OleCheck(Result: HResult);
C++
extern DELPHI_PACKAGE void __fastcall OleCheck(HRESULT Result);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | System.Win.ComObj.pas System.Win.ComObj.hpp |
System.Win.ComObj | System.Win.ComObj |
Description
Throws an EOleSysError exception if the result code indicates an error.
OleCheck is used to wrap many COM routines, so that if that routine fails, users will have an opportunity to handle it in the resulting exception that is raised.
If ECode is a value less than zero, OleCheck raises an EOleSysError exception that specifies the error code.