programming tools for Windows applications development
  Home  |   SwiftForth Archive  |   SwiftX Archive  |

Re: (No Date: Thu, 18 Jul 2002 15:37:58 -0700

From: Azedia of DOLFINA <dolfina_at_dolfina.org>
Date: Thu, 18 Jul 2002 23:06:23 -0700

Ok, so I am finally having the same issue as you, unless you have figured
it out.

> I did just this, but I can't figure out one thing: If, while the DOS
window
> is open, the user hits the close box, it shuts down the dos window and
also
> the parent calling app process! I haven't yet figured out how to trap the
> closebox hit.
>
> Bob
So, far, I can INCLUDE this file.f and there will be a Parent
Window. And there is a Console Window when I left lick. I can
call TRIAL and it runs successfully in the Console even when I
run CORETEST. But this is what is happening:

MYAPP runs fine only when run from the SF Console and it works ok,
but when running the exe CORETEST, only the Console Window displays.

REQUIRES DOSBOX
REQUIRES FORK
REQUIRES MYAPP / main window app file
REQUIRES CORE01 / console window app file

VARIABLE hCONSOLE

: LAUNCH-CONSOLE ( -- threadHandle ) / tried calling from
MYAPP
   hCONSOLE @ ( Already Launched? ) ?DUP ?EXIT / but only works if it's
here
   FORKS> /
could it be the fork
   ( We are now in a new thread )
   DOS-CONSOLE OPEN-PERSONALITY
   BEGIN
           TRIAL / code in console window app file
          \ CR ." Hello world! I am a CORE01 Console Window!"
          \ CR ." Press a Key " KEY EMIT
    0 UNTIL
   hCONSOLE OFF ;

[+SWITCH AppMessages ( -- res )
   WM_LBUTTONDOWN RUN: LAUNCH-CONSOLE hCONSOLE ! 0 ;
SWITCH]

PROGRAM CORETEST

jodell

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.377 / Virus Database: 211 - Release Date: 7/15/2002
----------------------------------------------------------------------
sftalk_at_forth.com      The SwiftForth programming discussion email list
To unsubscribe,  send subject "unsubscribe sftalk" to listar_at_forth.com
For help with listar commands, send subject "help" to listar_at_forth.com
Archives are located at http://www.forth.com/sftalk -- check them out!
Search the archives!    Visit http://www.forth.com/search for details.
Received on Fri Jul 19 2002 - 11:39:04 PDT

This archive was generated by hypermail 2.2.0 : Fri Nov 21 2008 - 03:04:23 PST