To include a dependency (like Windows in this case), add the uses block including a comma-separated list of units ending with an semicolon. This program uses the Windows API (WinAPI) to print "Hello World" into a message box. Show 'Hello World' Using WinAPI MessageBox To include a dependency (like Vcl.Dialogs in this case), add the uses block including a comma-separated list of units ending with an semicolon. without the need to work with Window Handles. This way, they can be used much easier, e.g. The VCL wrapps most of the commonly used WinAPI components. This progam uses VCL, the default UI components library of Delphi, to print "Hello World" into a message box. This program, saved to a file named HelloWorld.dpr, compiles to a console application that prints "Hello World" to the console: program HelloWorld 10.2 Tokyo 163.2MB Product Info Download RAD Studio 10.1 Berlin (incl. So I was thinking how use Delphi for building apps. Most of the Delphi supported platforms (Win32/Win64/OSX32/Android32/iOS32/iOS64) also support a console so the WriteLn example fits them well.įor the platforms that require a GUI (any iOS device and some Android devices), the above FireMonkey example works well. Delphi 10.1 Berlin Starter Edition Straight to the point Delphi is expensive Though you can get you hands on cracked versions of Delphi (that’s not good BTW).
Cross-platform Hello World using FireMonkey