System.Win.ComObj.TComObject.Error

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Error(const Msg: string): HResult; overload; stdcall;
function Error(const Msg: string; const IID: TGUID;
hRes: HRESULT = DISP_E_EXCEPTION): HResult; overload; stdcall;
class function Error(const Msg: string; HelpID: DWORD;
const HelpFile: string;
const IID: TGUID;
hRes: HResult = DISP_E_EXCEPTION): HResult; overload; static; stdcall;

C++

HRESULT __stdcall Error(const System::UnicodeString Msg)/* overload */;
HRESULT __stdcall Error(const System::UnicodeString Msg, const GUID &IID, HRESULT hRes = (HRESULT)(0x80020009))/* overload */;
static HRESULT __stdcall Error(const System::UnicodeString Msg, unsigned HelpID, const System::UnicodeString HelpFile, const GUID &IID, HRESULT hRes = (HRESULT)(0x80020009))/* overload */;

Properties

Type Visibility Source Unit Parent
function public
System.Win.ComObj.pas
System.Win.ComObj.hpp
System.Win.ComObj TComObject

Description

Returns the Error message of the TComObject instance. These three overloaded methods of the TComObject instance return the error message for the TComObject instance for the first two methods and for the thir which is a class method it returns the Error message the class has encountered not requiring an instance.