link to pc on a lan

link to pc on a lan

Postby Silvio » Thu Jan 18, 2007 4:39 pm

Dear friends,

Can I see in a windows or dialog all pc there are in a lan ? How I can make it ?

Can I link to a pc and read and write a dbf or an ini file ? How I can make it ?


can I have a small test ?

I hope yoour help

------
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Postby Roger Seiler » Fri Jan 19, 2007 10:36 pm

Here is how I do it.

1. I have a password security sign-on for my app that identifies the user, and refers to a members.dbf that contains the ID number assigned to each allowed user. Upon sign-on, that user ID # is copied into a file-wide static memvar.

2. Upon completion of launching the main app, the program accesses a USERS.DBF containing two fields and creates a temporary record there with the user's ID# and name. This file has only three fields, one for the ID, one for the user's name, and another for a memo field used to store any message to be sent to the user.

3. Each time the user activates a program module within the app, the program checks his/her temporary USERS.DBF record to see if there is a message waiting there.

4. The system administrator has access to a function with a dialog box that displays a list of all users currently online (by listing the people signed on from USERS.DBF). A button on this dialog box enables recording a message in the memo field of the USER.DBF record of the person selected from the list. Another button enables sending one message to all users currently on line (like "please sign-off ASAP"). Any user activity, as mentioned in #3 above, causes the user to see the message sent.

5. When a user signs off of the app, his/her temp record is blanked so it can be reused by the next person who signs on.

I hope this concept helps.

- Roger
User avatar
Roger Seiler
 
Posts: 223
Joined: Thu Dec 01, 2005 3:34 pm
Location: Nyack, New York, USA

Postby Roger Seiler » Fri Jan 19, 2007 10:39 pm

In point #1 above, I forgot to mention that the program also picks up the user's name from the members.dbf file.
User avatar
Roger Seiler
 
Posts: 223
Joined: Thu Dec 01, 2005 3:34 pm
Location: Nyack, New York, USA

Postby Silvio » Sat Jan 20, 2007 2:38 am

thanks roger but I trying to found a simply sample to working ...
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 26 guests