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