[fpc-pascal]Suppressing the console window in Win32
Steve Williams
stevewilliams at kromestudios.com
Thu Mar 4 08:26:04 CET 2004
Thanks. I've never had to use that in Delphi since it defaults to GUI if
there is no $APPTYPE directive. Would it make sense for FPC to default to
GUI if compiled in Delphi compatibility mode? I'm new to FPC so I don't
know if that has been discussed before.
Incidentally, can there be a warning printed out when the $APPTYPE directive
is in the wrong place and has no effect?
This works (compiles in GUI mode).
program test;
{$APPTYPE GUI}
uses
GameVision,
GVUConsole,
Globals,
GVUInput;
{$R *.res}
This doesn't (compiles in CONSOLE mode).
program test;
uses
GameVision,
GVUConsole,
Globals,
GVUInput;
{$R *.res}
{$APPTYPE GUI}
Sly
----- Original Message -----
From: "Peter Vreman" <peter at freepascal.org>
To: <fpc-pascal at lists.freepascal.org>
Sent: Thursday, March 04, 2004 5:11 PM
Subject: Re: [fpc-pascal]Suppressing the console window in Win32
> > I'm building a graphical application using GameVision
> > (http://www.jarroddavis.com/). The application compiled in FPC opens a
> > console window whenever the application is executed. The application
> > compiled in Delphi does not open a console window. How do I not have
the
> > console window automatically opened when the application is compiled
with
> > FPC?
>
> Add (delphi compatible) {$apptype gui}
>
>
>
> _______________________________________________
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
More information about the fpc-pascal
mailing list