我在delphi IDE专家工作,现在为了避免依赖性问题,我正在考虑重建这个专家作为dll专家,正如在其中一个
answers中提出的,现在我的专家(编译为bpl)访问Screen和Application全局变量(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
(编辑:李大同)
【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!
|