[fpc-devel] Dynamic GUI/Console apptype

Florian Klaempfl florian at freepascal.org
Sat Dec 26 17:01:42 CET 2009

Mimu Bunnylin schrieb:
> So, basically, make a GUI-mode application, let FPC release the console
> during its normal startup initialisations, then detect that the parent
> process was a console, and recapture the console... This could work,
> thanks. It would still seem far simpler to alter the FPC system unit to not
> release the console in the first place, but I could not find the relevant
> part in the source code. (Too many files, not enough idea of where to
> look.)

FPC doesn't do the console handling, this is done by windows depending
on exectuable flags which are set depending on apptype during linking.

More information about the fpc-devel mailing list