Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8664957
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T17:22:00+00:00 2026-06-12T17:22:00+00:00

My main application is in C#, and references another .NET DLL that declares IPlugin

  • 0

My main application is in C#, and references another .NET DLL that declares IPlugin and IPluginHost. I now need to import this DLL into a Delphi project so I can make a plugin for the main app. I’ve heard this is possible, but there is so much about importing classes (which I don’t want) or running Delphi code within .NET

Has anyone done this before who can clarify?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T17:22:01+00:00Added an answer on June 12, 2026 at 5:22 pm

    It will be quite difficult (I am not even sure if it’s possible) to implement the .NET interface directly in Delphi. There are, however, a few options available to you depending on how dirty you would like to get your hands.

    1) You could create a ActiveX DLL in Delphi and then import this library into .NET. You could then create a proxy class in C# that implements the interface and just route the calls onto the Delphi ActiveX DLL.

    2) You could create a native windows DLL in Delphi and then code the interface in .NET. You could then create a proxy class in C# that implements the interface and just route the calls onto the Delphi DLL.

    3) You could use a plugin framework like Hydra (http://www.remobjects.com/hydra/) that supports both .NET and Delphi.

    In all of these cases you should be careful to handle the 32/64 bit situations as .NET code is capable of running in both but the Delphi code would need to be compiled for each environment independently.

    Another option depending on your situation might be to write the Delphi code in a form of object pascal that will produce .NET byte code called Oxygene (http://www.remobjects.com/oxygene/).

    Edit: If you are trying to create Delphi plug-ins for use in your .NET plugin framework it would be best to do something like this:

    Create a new interfaces in Delphi that match your IPlugIn and IPlugInHost interfaces. You could then build a .NET Delphi plugin wrapper that will have some configuration information to specify which Delphi plugin to load. This .NET wrapper would then load the Delphi DLL and call the DLL methods as required. Visual stuff would need some sort of ActiveX wrapper but you should be able to use the non visual stuff fine.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a .NET Windows application that needs to call another .NET executable. I
I'm developing a JavaFx 2.0 application using Netbeans 7. The main application references another
I have my main application delegate which contains a method that returns an object.
I have my main application ,from my main application I will be calling another
So I have a UIViewController (main application controller is a TabBarController). On this there
I have an update program that is completely independent of my main application. I
I have a pretty big web application that I created last year using ASP.NET
Background The main application where I work is based heavily on the MUMPS-esque Caché
I have a main application, and a bunch of sub-applications (they are separate apps,
I have a java main application, and I want to use log4j. I don't

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.