[Harbour] Re: Trap / run routine when MS Windows red X box closed?
Viktor Szakáts
harbour.01 at syenar.hu
Tue Mar 2 05:10:21 EST 2010
Hi,
>> Thanks for the tips. I tried both these options, and they seem to start up
>> a new console window whenever I run stuff. I imagine this is the price I
>> have to pay, in order to trap the red X button being pressed...
>
> No it's not the price you have to pay.
> Additional console window is created by some C RTLs for console
> programs. You have to use -gui hbmk2 switch that you are creating
> GUI program. GTWVT uses WIN API to create console window so technically
> is not console program but GUI one.
Please note that -gtwvt automatically enables -gui, too.
In case one needs multiple -gt* options, it's best to use
it though (_after_ the -gt* options) to make sure GUI
mode is forced.
Brgds,
Viktor
More information about the Harbour
mailing list