以下代码是我从书上抄的,几经思索未发现纰漏,但始终异常,真气死俺了!
诸位高手,能否指点一下!unit xch;
interface
uses
  SysUtils, Classes, StdCtrls;
type
tmythread=class(tthread)
private
protected
procedure execute;override; /// 异常提示:[Error] xch.pas(10): Unsatisfied forward or external declaration: 'tmythread.execute'
public
end;  
implementation
end.

解决方案 »

  1.   

    是不是函数没有定义?procedure TMyThread.Create;
    begin
    ....
    end;
      

  2.   

    只有函数申明,没有函数的具体实现。
    加上procedure TMyThread.Create;
    begin
    ....
    end;
      

  3.   

    以下代码是我从书上抄的,几经思索未发现纰漏,但始终异常,真气死俺了!
    诸位高手,能否指点一下!unit xch;
    interface
    uses
      SysUtils, Classes, StdCtrls;
    type
    tmythread=class(tthread)
    private
    protected
    public
      procedure execute;override;//应该放到这儿 
    end;  
    implementationprocedure execute;//函数实现.
    begin
      //...
    end;
    end.
      

  4.   

    >>procedure execute;//函数实现.
    怎么少了类名?
    procedure TMyThread.execute;//函数实现.
    begin
      //...
    end