FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour link to pc on a lan
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
link to pc on a lan
Posted: Thu Jan 18, 2007 04: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
Posts: 223
Joined: Thu Dec 01, 2005 03:34 PM
link to pc on a lan
Posted: 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
Posts: 223
Joined: Thu Dec 01, 2005 03:34 PM
link to pc on a lan
Posted: 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.

Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
link to pc on a lan
Posted: Sat Jan 20, 2007 02:38 AM

thanks roger but I trying to found a simply sample to working ...

Best Regards, Saludos



Falconi Silvio

Continue the discussion