Jos*_*ons 4 delphi delphi-2010
我正在将组件包从Delphi 2007转换为Delphi 2010.
当我进行完整构建时,它会编译并开始链接.在链接期间,我收到两条消息:
[DCC Warning] MyPackage.dpk(235): W1033 Unit 'OleAuto' implicitly imported into package 'MyPackage'
[DCC Error] E2223 $DENYPACKAGEUNIT 'OleAuto' cannot be put into a package
Run Code Online (Sandbox Code Playgroud)
什么决定$ DENYPACKAGEUNIT中的单位?我该如何解决这个错误?
我在OleAuto.pas单元中找到了这个,这几乎解答了我的问题.
unit OleAuto deprecated;
{$DENYPACKAGEUNIT}
{ OleAuto cannot be used in a package DLL. To implement
an OLE automation server in a package, use the new
OLE automation support in comobj and comserv.
}
Run Code Online (Sandbox Code Playgroud)