DsgnIntf.dcu not found Delphi error

I was transferring my Code from Delphi 5 to Delphi XE5 while running I got error DsgnIntf.dcu not found. And I found that DsgnIntf.dcu was a part of ToolsAPI that introduced in Delphi 5. Now in newer versions of Delphi this file has been replaced by DesignIntf.pas. The property editors units and other design-time files were also moved into DesignEditors, DesignMenus, DesignWindows.

So the solution is to replace all references of DsgnIntf to DesignIntf in a unit.

But, when we have a single package for component development then we must separate run-time code and design-time code into separate packages. Create a run-time only package that contains just your component code. Create a design-time only package that specifies your run-time only package and the IDE's DesignIDE package in its requires list, and contains just your property editor and registration code. Then you can install the design-time only package into the IDE, and refer to the run-time only package in your projects. The DesignIDE package resolves the DsgnInf reference, but it is NOT allowed to be linked into run-time executable. It is for the IDE's use only. To add DesignIDE in you package,  Open up your design-time package, select the requires folder and hit the Add button. Type designide.dcp and hit OK. Recompile your package and the error should go away.


Comments

Popular posts from this blog

ShellExecute in Delphi

How to send Email in Delphi?

Drawing Shapes in Delphi