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

Re: opening a filetype with a turnkey

From: Mike Ghan <mikeghan_at_logix-controls.com>
Date: Mon, 16 Dec 2002 13:11:09 -0800

Typically as a command line parameter. Using Windows Explorer, define
the action for your file type (e.g. .FOO files) to execute your
SwiftForth program:

"C:\Program Files\SwiftForth\FooBar.EXE" "%1"

>From your program, read line command line parameter(s) with CMDLINE.

Mike

-----Original Message-----
From: sftalk-bounce_at_forth.com [mailto:sftalk-bounce_at_forth.com]On
Behalf
Of Roger Dube
Sent: Monday, December 16, 2002 12:32 PM
To: sftalk_at_forth.com
Subject: [sftalk] opening a filetype with a turnkey

I have created a turnkey application using Swiftforth. The application
will
perform a function on a file of a particular type (not used by any
other
function) but it needs to "know" (as in address and count) the file's
name. Of course I can use a dialog box into which the name can be
entered,
and that works perfectly.

  But a more elegant way would be to use Windows properties to
"automatically open the filetype" with my turnkey each time. I can
even
assign an icon to that filetype so it has a unique appearance.

The question is.. when my turnkey opens the file "automatically" by
clicking on the file itself, where can my turnkey "find" the filename
so it
can process it properly?

----------------------------------------------------------------------
Dr. Roger Dube

rdube_at_entropylock.com

President/CEO
Digital Authentication Technologies, Inc.

http://www.entropylock.com

TEL +1.561.392.7404
Boca Raton, FL 33434
----------------------------------------------------------------------

This E-mail message and any attachments have been scanned for viruses
and
are believed to be free of any virus or other defect that might affect
any
computer system into which it is received and opened. However, it is
the
responsibility of the recipient to ensure that it is virus free and no
responsibility is accepted by Digital Authentication Technologies,
Inc. for
any loss or damage arising in any way from its use.

This email message is for the sole use of the intended recipient(s)
and may
contain confidential and privileged information. Any unauthorized
review,
use, disclosure or distribution is prohibited. If you are not the
intended
recipient, please contact the sender by reply email and destroy all
copies
of the original message. Any views expressed in this message are those
of
the individual sender, except where the sender specifically states
them to
be the views of Digital Authentication Technologies, Inc.

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

----------------------------------------------------------------------
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 Mon Dec 16 2002 - 13:10:30 PST

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