使用 WinAPI MessageBox 顯示 Hello World
此程式使用 Windows API(WinAPI) 將 Hello World 列印到訊息框中。
要包含依賴項(在本例中為 Windows),請新增 uses 塊,其中包含以分號結尾的以逗號分隔的單元列表。
program HelloWorld;
uses
  Windows;
begin
  MessageBox(0, 'Hello World!', 'Hello World!', 0);
end.
此程式使用 Windows API(WinAPI) 將 Hello World 列印到訊息框中。
要包含依賴項(在本例中為 Windows),請新增 uses 塊,其中包含以分號結尾的以逗號分隔的單元列表。
program HelloWorld;
uses
  Windows;
begin
  MessageBox(0, 'Hello World!', 'Hello World!', 0);
end.