Recent

Author Topic: How to get rid of the console window?  (Read 736 times)

1q5xaaqz

  • New Member
  • *
  • Posts: 30
How to get rid of the console window?
« on: April 03, 2022, 05:45:37 pm »
I'm learning Windows API and tried to compile some GUI examples but I found there is always a console window together with it. I want to get rid of the console. On gcc I could use -mwindows to tell it to target the Windows GUI subsystem but I don't know the equivalent options on Free Pascal.

avk

  • Hero Member
  • *****
  • Posts: 752
Re: How to get rid of the console window?
« Reply #1 on: April 03, 2022, 06:26:15 pm »
Maybe the -WG option or insert {$apptype gui} at the beginning of the project unit.

1q5xaaqz

  • New Member
  • *
  • Posts: 30
Re: How to get rid of the console window?
« Reply #2 on: April 03, 2022, 06:30:22 pm »
Maybe the -WG option or insert {$apptype gui} at the beginning of the project unit.

It worked. Thank you.

 

TinyPortal © 2005-2018