Delphi plugin framework

后端 未结 5 1402
悲&欢浪女
悲&欢浪女 2021-02-13 18:53

I want to design Delphi plugin framework. There are three options:
1. DLL
2. BPL
3. COM interface

Every option has some disadvantage.

DLL - Promblem

5条回答
  •  遇见更好的自我
    2021-02-13 19:43

    Yes, what you wrote is correct. All of these have advantages and disadvantages, the question is what is important for you, you didn't say what you want to do, so we can't tell you how to do it.

    In general, I would pick BPL by default, use DLL if you need to use it from non Delphi apps, and pick COM only if you really have to.

    The alternative is to not build your own, since there are several Delphi plugin frameworks available.

    Also, this topic has been discussed here before, check out:

    • how-best-to-add-plugin-capability-to-a-delphi-program
    • plugins-system-for-delphi-application-bpl-vs-dll

提交回复
热议问题