它說產生一個winform:如何在不安裝IDE的情況下編譯並運行此Delphi代碼?
var
F : TForm;
L : TLabel;
begin
F := TForm.Create(Application);
L := TLabel.Create(F);
L.Parent := F; // Needed to have it show up on the form.
L.Left := 50;
L.Top := 50;
L.Caption := 'This is an example';
F.Show;
end;
事實上,從my previous question的。
如果是C程序,我可以運行這樣說:
> gcc foo.c -o foo.exe
> foo.exe
我怎麼能做到這一點同樣在Delphi?
只是檢查你的前一個問題的答案拉爾斯! – 2009-12-31 16:38:08
我也爲這個問題添加了我的答案。感謝提示Hugues。 – 2009-12-31 16:47:51
聽起來很像這個問題:http:// stackoverflow。com/questions/1813477/gui-only-by-using-fpc – 2009-12-31 19:14:32