JC Chu schrieb:
> Try this.
> program Test;
> {$MODE DELPHI}
> {$APPTYPE GUI}
> 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?

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to