错误是:   [Fatal Error] AutoListView.pas(1): Program or unit 'K:\Component\AutoListView.pas' recursively uses itself我的.pas单元没有use他自身啊,这是为什么?

解决方案 »

  1.   

    是你use的单元又use了它
    把use放在implementation后吧
    'K:\',你的盘符够多的!
      

  2.   

    'K:\Component\AutoListView.pas' 循环引用了自身
      

  3.   

    AutoListView.pas的内容如下:
      unit AutoListView;interfaceuses
      Windows, Messages, SysUtils, Classes, ComCtrls, ExtCtrls,
      Menus, StdCtrls;type
      TAutoListView = class(TListView)
      private
        { Private declarations }
      protected
        m_Edit:TEdit;
        m_ComboBox:TComboBox;
      public
        { Public declarations }
      published
        { Published declarations }
      end;procedure Register;implementationprocedure Register;
    begin
      RegisterComponents('Additional', [TAutoListView]);
    end;end.
      

  4.   

    你贴出来的这个 unit 没有问题呀
    看看是不是别的地方出了问题
      

  5.   

    直接用Collection[0],Collection[1]。BCB不能像Delphi那样写把。