Designintf.dcu not found in custom component

北城余情 提交于 2019-12-31 01:22:05

问题


I am here converting some customize delphi component to latest delphi xe5. I already build it in delphi xe5 ide and where desgninf i replaced with designintf and design editor. i also include designide.dcp in reference . it build and install sucessfully . but there some packages while i try to use and complie error like designinf.dcu not found come .

i study on internet for solution as after delphi 6 their delphi not redistributed their design time packges. but because it in delphi 5 and complex one i can invest time on dividing design and runtime code and test it.

kindly any alternative solution.

thanks abhishek mestri


回答1:


Such errors often happen if you take very old (Delphi 6 or before) component code and try to compile it in a newer compiler.

The unit designintf.dcu and some other units are only available to packages that link with the IDE, i.e. only for design time code. In older versions of Delphi, you would get the source code, but not anymore, because the packages in which these units are are not redistributable, they are exclusively meant for the IDE.

So at the time of Delphi 6 and 7, youw were warned to separate code that would be used at runtime and code that could only be used at designtime, by the IDE. The old component you are using did not do that, yet.

So try to find out which code actually requires designintf.dcu, move that code to a separate unit, and make it use the original unit. The original unit is now the runtime code, can be used everywhere, and doesn't need designintf.dcu. The other unit is the designtime unit and should only be linked into the package used to install the component in the IDE.

More info: Delphi FAQ




回答2:


For anyone that's having difficulty linking DesignIntf and/or DesignEditors, try adding designide.dcp to the package's Requires folder. For example, the dcp for XE3 can be found in:

C:\Program Files (x86)\Embarcadero\RAD Studio\10.0\lib\win32\release



回答3:


I already build it in delphi xe5 ide and where desgninf i replaced with designintf and design editor.

but there some packages while i try to use and complie error like designinf.dcu not found come

Based on your limited description, it seems to me that some of your packages might still expect to find designinf.pas file which you renamed to designintf.pas.

So I would go recheck all of the packages which don't compile so that they try to include the correct file and not the one which no longer exists.



来源:https://stackoverflow.com/questions/24806085/designintf-dcu-not-found-in-custom-component

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!