delphi 类定义问题
unittest;interfaceusesWindows,Messages,SysUtils,Variants,Classes,Graphics,Controls,Fo...
unit test;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs;
type
Ttest=class
private
procedure get(value:string);
end;
type
TForm1 = class(TForm)
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
end.
运行时报错
[Error] test.pas(11): E2065 Unsatisfied forward or external declaration: 'Ttest.Getsth' 展开
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs;
type
Ttest=class
private
procedure get(value:string);
end;
type
TForm1 = class(TForm)
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
end.
运行时报错
[Error] test.pas(11): E2065 Unsatisfied forward or external declaration: 'Ttest.Getsth' 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询