DelphiDelphiVCLPythonPython GUIWindows

Use The GetInterface Method In DelphiVCL.Application

DelphiVCL.Application.ExeName blog banner

The GetInterface method or DelphiVCL.Application.GetInterface is used to retrieve a specified interface.

GetInterface retrieves the interface designated by a GUID or type name. The basic implementation of GetInterface uses the GUID specified in the IID parameter. If the specified interface is supported by the class, it is returned in the Obj parameter, and GetInterface has a return value of True. Otherwise, Obj contains nil (Delphi) or NULL (C++), and GetInterface returns False.

Note: In Delphi code, IID can be an interface name. The compiler automatically translates this name into the corresponding GUID.

Note: In C++ code, use the templated version of GetInterface to obtain an interface from a DelphiInterface object.

GetInterface is equivalent to the as operator (Delphi) and dynamic casts (C++), except that GetInterface does not raise an exception if the interface is not supported.

Let’s browse all the properties, methods, and built-in properties of the DelphiVCL.Application.GetInterface using dir() command:

See the responses in our Windows command prompt:

0dir-5067359

You can also read short information about the DelphiVCL.Application.GetInterface using the print() command:

See the responses in our Windows command prompt:

0print-1761070

 

Check out DelphiVCL which easily allows you to build GUIs for Windows using Python.

close
Related posts
DelphiDelphiVCLPythonPython GUIWindows

What Is The MainFormHandle Property in DelphiVCL.Application?

DelphiDelphiVCLPythonPython GUIWindows

What is the MainForm Property in DelphiVCL.Application?

DelphiDelphiVCLPythonPython GUIWindows

Learn About The HelpJump Method For Displaying Help

DelphiDelphiVCLPythonPython GUIWindows

What Is The HookSynchronizeWakeup Method in DelphiVCL.Application?

Leave a Reply

Your email address will not be published. Required fields are marked *

en_USEnglish