Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Call a DotNet DLL from Delphi 7

3,529 views
Skip to first unread message

Alan Lupton

unread,
Jul 15, 2007, 12:09:16 PM7/15/07
to
I know I can call a Win32 DLL from DotNet by wrapping it, but how do I call
a DotNet DLL from my Delphi 7 application?


Hans-Peter Diettrich

unread,
Jul 15, 2007, 12:17:14 PM7/15/07
to
Alan Lupton wrote:

> I know I can call a Win32 DLL from DotNet by wrapping it, but how do I call
> a DotNet DLL from my Delphi 7 application?

Perhaps it helps to wrap the assembly into an ActiveX component?

DoDi

Oleg Subachev

unread,
Jul 16, 2007, 12:43:31 AM7/16/07
to
>I know I can call a Win32 DLL from DotNet by wrapping it, but how do I call
>a DotNet DLL from my Delphi 7 application?

You cannot call DotNet DLL from my Delphi 7 directly.

But you can consume automatically generated Class Interface
or interface explicitly defined in the assembly.

See "Class Interface", "Packaging an Assembly for COM" etc.
in .NET help.


Oleg Subachev


Bob Swart

unread,
Jul 16, 2007, 9:04:13 AM7/16/07
to
Hi Alan,

> I know I can call a Win32 DLL from DotNet by wrapping it, but how do I call
> a DotNet DLL from my Delphi 7 application?

See http://www.drbob42.com/examines/examin36.htm for an example of a C#
assembly (a DotNet DLL) which is used and called by a Delphi 7 client.

Groetjes,
Bob Swart

--
Bob Swart Training & Consultancy (eBob42.com) Forever Loyal to Delphi
Blog: http://www.drbob42.com/blog - RSS: http://drbob42.com/weblog.xml
Delphi 2006 Courseware PDF manuals at http://www.eBob42.com/courseware

bismark...@gmail.com

unread,
Oct 8, 2015, 6:36:44 AM10/8/15
to
You can use the .Net Runtime Library for Delphi in http://dotnetruntimelibraryfordelphi.sourceforge.net/

The runtime library allows you to host and access .net library types.
0 new messages