Results 1 to 3 of 3

Thread: Technical question about plugin DLLs

  1. #1
    Variable Bitrate
    Join Date
    Nov 2006
    Posts
    265

    Technical question about plugin DLLs

    Can a plugin DLL export entry points so those entries can be called directly by other DLLs or .Exes?

    Assuming proper serialization as needed, I have a situation that it would be much easier to call an entry in the plugin DLL from an exe rather that route the call through RR.

    Regards,
    Jim

  2. #2
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,818
    Sure, there's no problem with calling them direct, but you'd have to make sure to provide the right "environment" for it to run, by creating the plugin object, setting the path to its working folder and probably simulating any commands it may expect to come from RR. You can just look at the extension plugin examples and get the idea of how to do it, but if you have any questions, let me know. Depending on the plugin it may be looking for specific features of RR to work with (which you could simulate) but in general it should just work. PM me if you have more questions.
    Ride Runner RR's Myspace

    "Being happy is not about having what you want, it's about wanting what you have."
    "The best things in life are always free - but that doesn't mean money can't buy you good things."

  3. #3
    Variable Bitrate
    Join Date
    Nov 2006
    Posts
    265
    guino,

    It turns out that if the DLL is written using .NET (C#) there are some post build processes that must be done to "export" the entry points.

    In my case, I have a private plugin (C#) that manages/shares an external connection using WiFiMan or Internet Connection Sharing via PAN using MobilePhone.net. I have several AutoIt RR support functions and a couple of other private plugins that need to have a connection to function.

    I wanted a way to call the connection manager either directly via exports or via RR commands as defined by the connection manager plugin to establish and otherwise manage/share a connection.

    Turns out the "exports" with .Net and C# aren't part of the language definition and require internal modifications to the DLL. Fortunately there is a package written in Germany (DotNet DLL-Exporter) that performs the modifications.

    Once the mods are made to the C# DLL, any normal program can call using LoadLibrary, etc.

    Regards,
    Jim

Similar Threads

  1. Vehicle Maintenence Plugin
    By Sonicxtacy02 in forum RR Released Plugins
    Replies: 528
    Last Post: 12-19-2013, 09:01 PM
  2. Replies: 13
    Last Post: 05-28-2009, 03:18 PM
  3. newbie question location trigger plugin
    By johnn4711 in forum Centrafuse
    Replies: 1
    Last Post: 04-28-2005, 09:19 AM
  4. question about medio plugin
    By thanatos106 in forum Wireless Communications
    Replies: 0
    Last Post: 04-16-2005, 09:51 PM
  5. Lorty's plugin question
    By Dima in forum Software & Software Development
    Replies: 1
    Last Post: 11-01-2000, 04:29 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •