gpt4 book ai didi

delphi - bpl delphi专家和dll delphi专家有哪些区别

转载 作者:行者123 更新时间:2023-12-03 15:26:07 26 4
gpt4 key购买 nike

我正在一名delphi IDE专家中工作,现在为了避免依赖性问题,我正在考虑将这位专家重建为dll专家,正如其中一个answers中所建议的那样。 ,现在我的专家(编译为 bpl)访问 ScreenApplication 全局变量(Delphi IDE 的实例),所以我想知道是否将我的专家编译为 dll我仍然可以访问这些变量,而且我想知道bpl delphi 专家和 dll delphi 专家之间的主要区别是什么?

最佳答案

Should I compile my wizard as a DLL or a Package? Packages are easier to load and unload without restarting the IDE (and hence easier to debug), but they can create unit naming conflicts in the IDE. Conflicts happen when the name a wizard's unit matches the name of a unit in another loaded design-time package. In this case, both packages can not be loaded at the same time. The recommended workaround is to prefix all of your unit names with a "unique" prefix. GExperts, for example, uses "GX_" as the name prefix for its units.

来自this关于 OTA 的非常好的来源:GExperts

关于delphi - bpl delphi专家和dll delphi专家有哪些区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6062588/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com