Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2003-11

a question about win32 target?

5 messages · 5 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

GongYu

when use lazarus win32 create a win32 application. when run the application ,the application always have a console window, how to compile a win32 exe without console windows(pure GUI applicaiton)?

����������������������������GongYu

����������������������������������2003-11-21

Reply by email

Marco van de Voort
to Micha Nelissen: Insert {$apptype gui} at the top of your project file. Micha.
Show quoted text 7 lines
GongYu wrote: > when use lazarus win32 create a win32 application. > when run the application ,the application always have a console window, > how to compile a win32 exe without console windows(pure GUI applicaiton)? Insert {$apptype gui} at the top of your project file.

Shouldn't lazarus simply pass -WG to FPC for this?

Or doesn't have lazarus a field in the project for GUI/Console selection?

Reply by email

Mattias Gaertner
to Micha Nelissen: Insert {$apptype gui} at the top of your project file. Micha.
Show quoted text 10 lines
> GongYu wrote: > > > when use lazarus win32 create a win32 application. > > when run the application ,the application always have a console > > window, how to compile a win32 exe without console windows(pure GUI > > applicaiton)? > > Insert {$apptype gui} at the top of your project file. Shouldn't lazarus simply pass -WG to FPC for this?

Possible.
But this flag is useless under all other targets, isn't it? And I know, that it will confuse people, if the IDE will add different options under different targets without any change.
What about adding {$AppType Gui} to the lpr file?

Or doesn't have lazarus a field in the project for GUI/Console selection?

Not yet. I will add it.

Mattias

Reply by email