Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Including a .Net DLL in a Delphi project



Permlink Replies: 1 - Last Post: Aug 17, 2017 2:56 PM Last Post By: Bismark Appah
Fred Smith

Posts: 81
Registered: 12/4/15
Including a .Net DLL in a Delphi project
Click to report abuse...   Click to reply to this thread Reply
  Posted: Nov 19, 2015 4:53 AM
Hi all,
Does anyone have any idea how to include a DLL written in C# (.Net 4) into a Delphi project ?
The COMVisible in the C# DLL is set to false (ComVisible(false)) and implements CallbackHandlers.
Thanks very much
Bismark Appah

Posts: 26
Registered: 3/13/15
Re: Including a .Net DLL in a Delphi project
Click to report abuse...   Click to reply to this thread Reply
  Posted: Aug 17, 2017 2:56 PM   in response to: Fred Smith in response to: Fred Smith
Fred Smith wrote:
Hi all,
Does anyone have any idea how to include a DLL written in C# (.Net 4) into a Delphi project ?
The COMVisible in the C# DLL is set to false (ComVisible(false)) and implements CallbackHandlers.
Thanks very much

Hi Fred,

You can use the .Net Runtime Library for Delphi to access dll written in C# without registering the DLL as COM.

Ways to access .Net dll using the Runtime Library include but not limited to:

1. Adding a dispatch attributes to your c# class members and accessing these members directly from Delphi.

2. Using the Reflection API in the runtime library to access the assemblies and its types and invoke members of the types.

3. You can use the .Net Assembly/WSDL Import Tool which is part of the .Net Runtime Library for Delphi to import your dll assemblies and generate delphi codes from the types of the assembly.

4. etc

For more information, go to https://crystalnet-tech.com/RuntimeLibrary/RuntimeLibrary4Delphi.aspx.
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02