S
siaosa
Unregistered / Unconfirmed
GUEST, unregistred user!
program Project1;
{$APPTYPE CONSOLE}
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs;
type
TForm1=class(Tform)
private
public
end;
var
Form1:Tform1;
begin
{ TODO -oUser -cConsole Main : Insert code here }
Form1:=TForm1.Create(application); //在控制台方式创建表单,这里为什么会出错?
Form1.ShowModal;
Form1.Free;
end.
{$APPTYPE CONSOLE}
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs;
type
TForm1=class(Tform)
private
public
end;
var
Form1:Tform1;
begin
{ TODO -oUser -cConsole Main : Insert code here }
Form1:=TForm1.Create(application); //在控制台方式创建表单,这里为什么会出错?
Form1.ShowModal;
Form1.Free;
end.