参考此贴:
http://www.csdn.net/Expert/TopicView1.asp?id=637233

解决方案 »

  1.   

    NOTE FOR DELPHI 6 users: - DesignIntf.dcu not found. 1. When you compile, you may get a compile error:  File not found: 'DesignIntf.dcu'  Fix: Open Tools > Environment options > Library, and add a path to ToolsAPI, like this:   $(DELPHI)\Source\ToolsAPI2. After adding that file, if the compile stops in DesignEditors at:   uses DesignConst, Consts, RTLConsts, Contnrs, Proxies;  File not found: 'Proxies.dcu'.  Fix: a. In DesignEditors.pas, comment Proxies out, like this:  uses DesignConst, Consts, RTLConsts, Contnrs;//, Proxies;b. In DesignEditors, locate:  function TCustomModule.ValidateComponentClass(ComponentClass:
    TComponentClass):and comment out the code line:  while IsProxyClass(ComponentClass) do
        ComponentClass := TComponentClass(ComponentClass.ClassParent);
      

  2.   

    我的问题是  写控件没问题,但使用控件的应用程序编译都没法通过。
    在delphi5的readme.txt中有一段到是提到写组件最好把设计期代码单独提出来放到另外的单元中。
    多谢各位的回答。