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 3428814
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T07:00:18+00:00 2026-05-18T07:00:18+00:00

im currently working in a simple program that implements plugins whith dll libraries (using

  • 0

im currently working in a simple program that implements plugins whith dll libraries (using the TJvPluginManager from the JVCL Framework).

So far I figure out how to use this component to handle commands but what if i want to have a return value from a custom function inside the library?. It is posible to call a certain function from the host by using the TJvPluginManager? How should I implement this?.

The hole idea is to have a function that returns a string inside each dll so it can be called by using a simple cicle. I think I can do this by hand (using dinamic loading) but I want to work with TJvPluginManager as much as possible.

Thank you for your time.
John Marko

  • 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-05-18T07:00:18+00:00Added an answer on May 18, 2026 at 7:00 am

    The way I do it is to implement an Interface in the plugin and call it from the host e.g.

    MyApp.Interfaces.pas
    
    uses
      Classes;
    
    type
      IMyPluginInterface = interface
      ['{C0436F76-6824-45E7-8819-414AB8F39E19}']
        function ConvertToUpperCase(const Value: String): String;
      end;
    
    implmentation
    
    end.
    

    The plugin:

    uses
      ..., MyApp.Interfaces;
    
    type
      TMyPluginDemo = class(TJvPlugIn, IMyPluginInterface)
      public
        function ConvertToUpperCase(const Value: String): String;
      ...
    
    implmentation
    
    function TMyPluginDemo.ConvertToUpperCase(const Value: String): String;
    begin
      Result := UpperCase(Value);
    end;
    
    ...
    

    The host:

    uses
      ..., MyApp.Interfaces;
    
    ...
    
    function TMyHostApp.GetPluginUpperCase(Plugin: TjvPlugin; const Value: String): String;
    var
      MyPluginInterface: IMyPluginInterface;
    begin
      if Supports(Plugin, IMyPluginInterface, MyPluginInterface) then
        Result := MyPluginInterface.ConvertToUpperCase(Value)
      else
        raise Exception.Create('Plugin does not support IMyPluginInterface');
    end;
    

    Hope this helps.

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

Sidebar

Related Questions

I'm currently working on a simple php function for an entity in the framework
I am currently working on a simple Silverlight app that will allow people to
I am currently working on a simple web application through Google App engine using
I currently have a working, simple language implemented in Java using ANTLR. What I
I am currently working on a simple line program in java. There will be
I'm currently working on a small utility program that only requires a command line
I am currently working on a simple GUI application that rolls two dice. I
I'm currently working on a simple web application where users each have their own
I am currently working on some simple custom allocators in c++ which generally works
I`m currently working out the design for simple graphic editor, who support trivial operations

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.