On Sat, 16 Sep 2006 11:21:01 -0400, "Victor Bazarov"
<v.********@comAcast.netwrote:
>na********@gmail.com wrote:
>Hi im trying to have the same file open in access on two different
pc's. So that when the users input data on one it well update the
file so it well show up on the other pc and vaice verse.
I don't think it's a language problem. If your PCs run the operating
systems that allow networking, you should be able to specify the
location of the same file on each of them (it could reside on one of
the systems or on an independent server altogether). The fact that
access to that file has to be _shared_ has nothing to do with the
language. It is achieved through operating system mechanisms, that's
why you need to ask in the newsgroup dedicated to your OS.
It's more a design than an OS problem. The challenge is to ensure that
at the same time only one process accesses the file. It's tedious but
it can (almost) be done in C++ with a lock file. The sketch of a
soulution is presented here:
http://www.informit.com/guides/conte...eqNum=144&rl=1
.. The solution is incomplete because it doesn't address "if a process
that holds the lock terminates before releasing it".
I have implemented something similar but would not recommend it.
Better use other 'collaborative' protocols (eg. each process writes to
its own file which can be read (but not modified) by all other
processes).
Best regards,
Roland Pibinger