1.DsgnIntf.pas在Delphi6编译总是失败,有几个undeclared identifier,比如IDesign等,有好些控件都需要这个文件编译,而且Delphi6没有自带2.Office的WebComopenents也没法安装,Error这个符号没有定义

解决方案 »

  1.   

    1:
    这个问题是D6及D7才有的,原因及解决方法如下文(英文站点,看晕了)
    http://community.borland.com/article/0,1410,27717,00.html
     
    不改包,直接改Delphi源文件的解决方法:(我是这样改的,没有出什么问题)
    1.加入搜索路径
    C:\Program Files\Borland\Delphi7\Source\ToolsAPI
    2.打开
    C:\Program Files\Borland\Delphi7\Source\ToolsAPI\DesignEditors.pas
    3.找到并把
    uses
      Types, SysUtils, Classes, TypInfo, Variants, DesignIntf, DesignMenus,Proxies;
    改为
    uses
      Types, SysUtils, Classes, TypInfo, Variants, DesignIntf, DesignMenus{,Proxies};
    4.找到并把
          if (FAncestor = nil) and (Component <> Designer.Root)
            and IsProxyClass(Component.ClassType) then
    改为
          if (FAncestor = nil) and (Component <> Designer.Root)
            {and IsProxyClass(Component.ClassType)} then
    5.找到并把
      while IsProxyClass(ComponentClass) do
    改为
      //while IsProxyClass(ComponentClass) do
    6.保存,编译运行,OK上面3.4.5.就是把Proxies单元从DesignEditors单元中剔除,DesignEditors单元中只有两个地方引用了Proxies单元的函数,而且是同一个函数:IsProxyClass,把这两个地方注释掉就可以了.2:
      应该要引用一个单元,好象是ActiveX或ComObj之类的,忘了
      

  2.   

    1.这样不用到Proxies,会不会以后出现问题,
    2.好像不行的,到底需要哪个单元
      

  3.   

    1.没有问题
    2.ADOInt 不知道是不是这个,好象也没有别的了
      

  4.   

    2.通过了,但是还是不行
    [Warning] OWC10_TLB.pas(13318): Method 'Repaint' hides virtual method of base type 'TWinControl'
    [Warning] OWC10_TLB.pas(13561): Method 'Repaint' hides virtual method of base type 'TWinControl'
    [Warning] OWC10_TLB.pas(13899): Redeclaration of 'OnFocus' hides a member in the base class
    [Error] OWC10_TLB.pas(14425): Field or method identifier expected
    [Error] OWC10_TLB.pas(14442): Field or method identifier expected
    [Error] OWC10_TLB.pas(14446): Field or method identifier expected
    [Error] OWC10_TLB.pas(15687): Cannot assign to a read-only property
    [Error] OWC10_TLB.pas(15700): Cannot assign to a read-only property
    [Error] OWC10_TLB.pas(15734): Cannot assign to a read-only property
    [Error] OWC10_TLB.pas(16895): Undeclared identifier: 'Connection'
    [Fatal Error] Office.dpk(34): Could not compile used unit '..\..\Imports\OWC10_TLB.pas'