Re: Console and Form together in one application based on EXE parameters
- From: Rob Kennedy <me3@xxxxxxxxxxx>
- Date: Sun, 19 Feb 2006 13:37:54 -0600
Jamie wrote:
i found in the past if you start with a console app and then include a
Tform class and dynamicly create it on start up, you can have both
the console and VCL :))
I frequently use that technique when debugging. However, Ajo wants one or the other, but not both simultaneously.
If he starts with a console program, then he can call FreeConsole to get rid of the console window afterward, but there's still an unsightly flicker as the OS creates the window but before the application has a chance to remove it.
If he starts with a GUI program, then he can use AllocConsole to get a new console window, but he wants to inherit the use of the existing console window, if there is one. He can do that with AttachConsole, but I already described the problem with that.
--
Rob
.
- References:
- Console and Form together in one application based on EXE parameters
- From: ajo
- Re: Console and Form together in one application based on EXE parameters
- From: Rob Kennedy
- Re: Console and Form together in one application based on EXE parameters
- From: Hans-Peter Diettrich
- Re: Console and Form together in one application based on EXE parameters
- From: Jamie
- Console and Form together in one application based on EXE parameters
- Prev by Date: Re: tic tac toe source code delphi
- Next by Date: help Delphi DLL
- Previous by thread: Re: Console and Form together in one application based on EXE parameters
- Next by thread: D6 COM Events with Transposed Parameters
- Index(es):
Relevant Pages
|