Viktor,

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.

--
Xavi

El 17/12/2009 22:49, Viktor Szakáts escribió:
<  --- t.prg --->

Procedure Main()
   Local cArg := hb_CmdLine()

   REQUEST HB_GT_WVG
   REQUEST HB_GT_WIN
   REQUEST HB_GT_NUL_DEFAULT

   if !Empty(cArg) .and. (Val(cArg) == 1) .and. !('//GTWIN' $ cArg)
      hb_gtReload( 'WVG' )
   else
      hb_gtReload( 'WIN' )
   endif

   ? "Click [X] to close windows console "
   while( LastKey() != 27 )
      Inkey( 1 )
   enddo

   Wait
return

Can't see any difference with MINGW.

I changed WVG to WVT for my tests and
used 'hbmk2 t.prg' to build it.

What am I doing wrong?

Could anybody help here?

Brgds,
Viktor

_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to