Hi Xavi,

> 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.

For some reason I'm not getting this dialog here, nor does my 
screen stay around after closing a console app. (I couldn't find 
where to set that).

> 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.

To me this example program is a little strange, since you're 
trying to replicate a feature on .prg level which is built 
right into the core. Plus ANNOUNCE was missing, GTNUL is 
unnecessary, WAIT at the end doesn't get executed if closed.

--- t2.prg
REQUEST HB_GT_WVT_DEFAULT
ANNOUNCE HB_GTSYS

PROCEDURE Main()

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

  RETURN
---

Build with 'hbmk2 t2'

Run as: t2
or: t2 //gtwin

Brgds,
Viktor

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

Reply via email to