![]() |
||
| Home | SwiftForth Archive | SwiftX Archive | |

I believe what you're referring to is file sharing. Here is a version
of OPEN-FILE modified for file sharing:
\ Open File as Shared. Shared files must be open with same fam.
: OPEN-FILE-SHARED ( c-addr u fam -- fileid ior )
R-BUF -ROT R@ ZPLACE
R> SWAP ( fam ) FILE_SHARE_READ OVER ( fam ) R/W =
IF FILE_SHARE_WRITE OR THEN
0 OPEN_EXISTING
FILE_ATTRIBUTE_NORMAL FILE_FLAG_SEQUENTIAL_SCAN OR
0 CreateFile DUP 1+ 0= -199 AND ;
Note that if the other application has not opened the file in share
mode, you'll get a error.
Hope this helps,
Mike
-----Original Message-----
From: sftalk-bounce_at_forth.com [mailto:sftalk-bounce_at_forth.com] On Behalf
Of Dr. Roger Dube
Sent: Tuesday, May 30, 2006 11:29 AM
To: sftalk_at_forth.com
Subject: [sftalk] file mapping
We are having email issues today, so if this has been posted already,
please accept my apologies.
Does SwiftForth support Windows' file mapping? Has anyone used this
approach to avoid collisions between different applications trying to
access the same file at the same time?
-- Roger
--------------------------------------------
Dr. Roger Dube
President and Chief Science Officer
Digital Authentication Technologies, Inc.
561.392.7404 (office)
561.892.2474 (eFax)
RDube_at_datHQ.com
1900 Glades Road Suite 441
Boca Raton, FL 33431
----------------------------------------------------------------------
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" 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
----------------------------------------------------------------------
----------------------------------------------------------------------
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 Tue May 30 2006 - 12:42:19 PDT
This archive was generated by hypermail 2.2.0 : Wed Nov 19 2008 - 03:04:27 PST