Vote UpVote

Consuming Delphi interfaces in Dephi and C++

The Programming Works – An object-oriented DLL written in Delphi exports functions with parameters of interface type. A code consuming such DLL can use an interface reference directly, but a better way is to write a wrapper type which incapsulates an interface reference. Let us consider as an example a simple interface IBytes designed to work with byte arrays: unit ITypes; interface type IBytes = interface function GetLength: Integer; procedure Append(B: Byte); procedure CopyTo(var C: IBytes); end; implementation end. The IBytes interface is implemented by the TByteObject class: unit ...
Favorite? Off-Topic? Serg @ 2013-12-13 11:14


Visits: 1152
Votes: 3
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Primoz Gabrijelcic
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


Please login or register to use this functionality.
(click on this box to dismiss)