0
votes
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

Statistics

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

Visits by Source

User Actions

Users who voted for this posting

Subscribe:
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News

Sponsor

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