我用Delphi2005,建立一个vcl form application for .net。
写一个普通的class例如:
type
studentclass=class
public
aa:integer;
end;然后在一个button事件调用
procedure TForm1.Button1Click(Sender: TObject);
var
s:studentclass;
begin
s:=studentclass.create();///但是这里竟然说没有create方法?为什么?
s.aa:=100;
ShowMessage(inttostr(s.aa));
end;
有没有人试过?? 建立vcl form application for win32的工程里面这样用没有问题。
写一个普通的class例如:
type
studentclass=class
public
aa:integer;
end;然后在一个button事件调用
procedure TForm1.Button1Click(Sender: TObject);
var
s:studentclass;
begin
s:=studentclass.create();///但是这里竟然说没有create方法?为什么?
s.aa:=100;
ShowMessage(inttostr(s.aa));
end;
有没有人试过?? 建立vcl form application for win32的工程里面这样用没有问题。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货