How best to add Plugin Capability to a Delphi program

前端 未结 9 2069
时光说笑
时光说笑 2020-12-23 08:52

I am looking to add the capability for users to write plugins to the program I have developed in Delphi. The program is a single executable with no DLLs used.

This

9条回答
  •  心在旅途
    2020-12-23 08:59

    I tried to make an overview of all such options some time ago. Together with my readers/commenters we built this list:

    • DLL/BPL loaded from the program.
    • DLL/BPL loaded from a sandbox (which could be another copy of the program or a specialized "server" application and which communicates with the main program via messages/sockets/msmq/named pipes/mailslots/memory mapped files).
    • COM (in any of its variants).
    • DDE (please not).
    • External program that communicates via stanard input/output.
    • External program that communicates via files (file name is a parameter to the program).
    • External program that works via drop folder (useful for batch processing).
    • External program that communicates with windows messages/windows sockets/msmq/named pipes/mailslots/memory mapped files/database publish-subscribe.

提交回复
热议问题