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 encapsulates 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; stdcall; procedure Append(B: Byte); stdcall; procedure CopyTo(var C: IBytes); stdcall; end; implementation end. The IBytes interface is implemented by the ...
Favorite? Off-Topic? Serg @ 2013-12-13 11:14


Visits: 7
Votes: 0
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

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)