On Fri, 18 Dec 2009, Xavi wrote: Hi,
> If I sent this example is because I thought the difference was obvious. > In my development environment Windows presents the "End program dialog" (with > option to cancel) with //GTWIN and not without. > The reason is that with one is executed the event handler because windows > reused the console and with other not. > But ... !!! ??? is a big surprise to me that, with 'hbmk2 t.prg' my example > program not do the same. > Well Murphy's law and extra work for me. > When find speare time I look exactly what happens. > A little help would be welcome. This behavior depends on application type. GUI applications using WinMain() as startup entry allocates new console and CUI programs starting with main() trys to inherit existing console from calling process. Type of application depends on linker switches. In hbmk2 it can be changed by -gui|-std switches. best regards, Przemek _______________________________________________ Harbour mailing list (attachment size limit: 40KB) [email protected] http://lists.harbour-project.org/mailman/listinfo/harbour
