I have noticed a few postings requesting information on exchanging data
between applications. I needed to do the same thing, so I pulled out my
Win32 programming bible and looked up file mapping.

It wasn't that hard to get an example working and I figured it would be
beneficial to the Clarion community if I shared what I learnt.
So, attached is a working example of a client/server demo that exchanges
data every second.  Five strings and five numbers are pushed by the server
and read by the client.

There is only one program. It loads as a server or a client depending on
the command-line parameter supplied. It happens to be a CW 5 project, but
the source will compile under CW 4 and CW 2 as well.

- Copy the executable to your desktop twice as two shortcuts. Place them side
   by side.
- Edit the properties of the first shortcut and add '/server' to the end of
   the Target. Rename the shortcut to include the word "server" in it.
- Edit the properties of the second shortcut and add '/client' to the end of
   the Target. Rename the shortcut to include the word "client" in it.

To start the demo, double-click on the server shortcut. After one second,
you'll see data appear on the window. Double-click on the client shortcut
and watch the client mirror the data coming from the server.

This is a trivial demo to demonstrate how file mapping works. You should be
able to take this example and make it do whatever you require to exchange
data between two Clarion applications. No more need for a disk file or DDE!

(this code is distributed free to the Clarion community and cannot be sold
for profit!)

==========================================================
Ray Goudie					ray@wrapmation.com
Wrapmation, Inc.				www.wrapmation.com
Westmount, Quebec, Canada
