Forum > Beginners

How to get rid of the console window?

(1/1)

1q5xaaqz:
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:
Maybe the -WG option or insert {$apptype gui} at the beginning of the project unit.

1q5xaaqz:

--- Quote from: avk on April 03, 2022, 06:26:15 pm ---Maybe the -WG option or insert {$apptype gui} at the beginning of the project unit.

--- End quote ---

It worked. Thank you.

Navigation

[0] Message Index

Go to full version