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

Re: Creating a console app

From: Mike Ghan <mikeghan_at_logix-controls.com>
Date: Sun, 12 Oct 2003 16:28:46 -0700

Jeff,

Are you interesting in a standalone "Turnkey" application or will your
application rely on the SwiftForth environment and its "TTY" console?

For a standalone turnkey app, a Windows console (aka DOS Box) can be
easily be created to display status information. See the subject
"Turnkey" in the SFTalk 2002 archives.

Also, use the following (or something like it) to properly shutdown
your application:

: ALL-DONE ( -- )
   'ONSYSEXIT CALLS \ Execute System Exit Chain
   0 ExitProcess ;

Mike

-----Original Message-----
From: sftalk-bounce_at_forth.com [mailto:sftalk-bounce_at_forth.com]On
Behalf
Of Jeff
Sent: Sunday, October 12, 2003 4:02 PM
To: sftalk_at_forth.com
Subject: [sftalk] Creating a console app

Hello all,

I've got my first program just about done, and I'm ready to create the
EXE. From the documentation this appears rather simple, but I'm
running into a few hic-ups. I figured out using 'MAIN instead of
STARTER to get the program up and running without SF.EXE.

But I can't get anything to type to the console. Hopefully I'm just
missing something simple to create a console application? Ideally, I'd
just like ABORT" . ." etc to all output to the console.

--
Best regards,
 Jeff                          mailto:jma_at_mfire.com
----------------------------------------------------------------------
sftalk_at_forth.com      The SwiftForth programming discussion email list
To unsubscribe, send subject "unsubscribe" to sftalk-request_at_forth.com
For list command help, send subject "help" to sftalk-request_at_forth.com
Message archives are located at http://www.forth.com/archive/sftalk
----------------------------------------------------------------------
This list is a forum for SwiftForth users.  For product support and bug
reports, please send email to support_at_forth.com
----------------------------------------------------------------------
Received on Sun Oct 12 2003 - 16:33:02 PDT

This archive was generated by hypermail 2.2.0 : Tue Dec 02 2008 - 03:04:33 PST