Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I run a program in Peer To Peer network ?

Status
Not open for further replies.

cyberdyne

Programmer
May 1, 2001
173
IN
Hi all,

I have developed a foxpro 2.6 dos prject, which is running fine under dos and win9.x.
I want this program to run from all the computers running on win9.x connected in peer to peer network. But the database would be only on one master computer. How do I do this?
Is there any extra lines do i have to add in the code ?

Please help asap.
From:
Apoorva Gala
You can mail me at apoo1972@rediffmail.com
 
As long as you can specify a PATH to where the data tables "live", then Foxpro can work with them.

Other multi-user issues such as Record Locking, etc. will be automatically handled by Foxpro. However, your specific application might have unique requirements requiring you to programatically control the FLOCK and RLOCK.

In your stand-alone applications you most likely utilize the Default Path.
To utilize data elsewhere you will need to define either the specific data location
example: m.cDBF_Dir = "G:\MyApp\Data\"
m.cDBF = m.cDBF_Dir + "table1.dbf"
USE &cDBF
or
example: USE G:\MyApp\Data\table1

or set the PATH so that the program will know where to look.
example: SET PATH TO G:\MyApp\Prog, G:\MyApp\Data
USE table1

Remember that Foxpro 2.6 will only recognize 8 char (or less) directory names, so specify your location and/or your Path with short (DOS Type) directory names, not with Windows type long names.

Good Luck,
jrbbldr
jrbbldr@yahoo.com

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top