[fpc-pascal] Program without window but messages

J├╝rgen Hestermann juergen.hestermann at gmx.de
Wed Apr 25 18:04:01 CEST 2012

JC Chu schrieb:
 > Try this.
 > program Test;
 > uses
 >   {$IF Defined(UNIX) and Defined(UseCThreads)}cthreads,{$ENDIF}
 >   Interfaces, Forms, Dialogs;
 > begin
 >   Application.Initialize;
 >   ShowMessage('Test');
 > end.

Yes, this works!
Now I only need to understand why. ;-)

I was expecting the "application.initialize" to create a
window so I omitted it.
What does the initialize routine?
Why is it needed?

More information about the fpc-pascal mailing list