The class that wanted to implement such an “interface” would simply inherit directly from the pure abstract class, overriding and implementing the all the abstract methods. ![]() This is how interfaces are still declared in C++, for instance. ![]() This makes it hard (or impossible) to implement a pure interface from a non-COM DLL using a Delphi interface declaration.īack in the dark ages of Delphi 2, there where no explicit interfaces and COM support was built on the fact that the VMT table layout matched COM’s binary contract, and “interfaces” were declared using pure abstract base classes. ![]() This means that all interfaces have the three methods QueryInterface, _AddRef and _Release. It is true that a Delphi interface declaration always implicitly inherits from IUnknown or IInterface (to distinguish between COM interfaces and Delphi language interfaces). I came across one of them in a DLL which I need to use. “ In Delphi we expect all interfaces be descendants of IUnknown, but in C world there are many even more basic interfaces which are not inherited from IUnknown. In a comment on the recent interface-list blog post Huseyn asks:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |