Plugins system for Delphi application - bpl vs dll?

前端 未结 5 1831
离开以前
离开以前 2020-12-02 19:18

I\'m writing delphi app which should have capability of loading plugins. I\'m using JvPluginManager as plugin system/manager ;) Now, in the new plugin wizard they say it\'s

5条回答
  •  鱼传尺愫
    2020-12-02 19:42

    Your first con is also a pro. If you replicate shared code in each dll the dlls get bigger and bigger. Even when using dlls you can prevent this by moving shared code in a separate dll.

    Pros:

    1. Types are shared. No TFont is not a TFont problem
    2. Memory manager is shared. Strings and classes can be used as parameter between plugins without problems.

    Cons:

    1. Plugins can be built using Delphi or BCB only.
    2. Plugins should use the same Delphi or BCB version.

    Have you considerd using COM? COM makes it possible to share types, strings and classes and the plugins can be written in many programming languages.

提交回复
热议问题