Delphi What You Need To Know About The GetInterfaceEntry Method

FireWind

Свой
Регистрация
2 Дек 2005
Сообщения
1,957
Реакции
1,203
Credits
4,034
What You Need To Know About The GetInterfaceEntry Method
By Muhammad Azizul Hakim August 10, 2021

Use the GetInterfaceEntry method or DelphiVCL.Application.GetInterfaceEntry to return the entry for a specific interface implemented in a class.

GetInterfaceEntry returns the class entry for the interface specified by the IID parameter.

Note: In Delphi Code, IID can be an interface name. The compiler replaces this name with the actual GUID.

Note: COM objects can use GetInterfaceEntry to automate dispatch calls to a dual-IDispatch interface.

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

Python:
import DelphiVCL
 
dir(DelphiVCL.Application.GetInterfaceEntry)
See the responses in our Windows command prompt:
1628624721869.png
You can also read short information about the DelphiVCL.Application.GetInterfaceEntry using the print() command:
Python:
print(DelphiVCL.Application.GetInterfaceEntry)
print(DelphiVCL.Application.GetInterfaceEntry.__doc__)
See the responses in our Windows command prompt:
1628624750491.png