据说在DSGNINTF中注册了至少21个客户属性编辑器(custom property editors), 
但是我在implementation中加入"uses DsgnIntf;"编译
却说找不到这个文件我找了,没有这个文件,是不是在D7里改名了?

解决方案 »

  1.   

    是不是搜索路径中不包括DsgnIntf所在的路径呢?
      

  2.   

    d5里有
    d6,d7好像都没有哈
    是不是在d7里改名了?我搜索DsgnIntf.dcu也没有找到
      

  3.   

    Dealing with DsgnIntf.pas code trouble
    Many of you might have experienced problems when trying to use DsgnIntf.pas in applications that are compiled under Delphi 6 or 7. Since the original DsgnIntf.pas code has been splitted up in those newer versions, the following trick helps in most situations: {$UNDEF DEL345}
    {$IFDEF VER100} {$DEFINE DEL345} {$ENDIF}
    {$IFDEF VER120} {$DEFINE DEL345} {$ENDIF}
    {$IFDEF VER130} {$DEFINE DEL345} {$ENDIF}uses
     {$IFDEF DEL345}
     DsgnIntf
     {$ELSE}
     DesignIntf, DesignEditors, VCLEditors, RTLConsts
     {$ENDIF};Put the above code at the place that pointed to just DsgnIntf before, and you should be a happy person again.
    -----------------------------------------------------
    将uses  DsgnIntf改为上面的代码,如果还有报DesignIntf未找到错,将delphi目录的Source\ToolsAPI加入你的搜索路径