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
Earlier message 23 lines
----- Original Message -----
From: "Peter Vreman"
To:
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 -
>
http://lists.freepascal.org/mailman/listinfo/fpc-pascal