FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour LAN User Messaging Service
Posts: 99
Joined: Fri Dec 16, 2011 03:30 PM
LAN User Messaging Service
Posted: Fri Jan 08, 2016 11:39 AM

Dear All,

Does anyone have a working sample of text messaging users currently using a multi user application over a local network ? Users need to message other users over a LAN.

Any suggestions.....Thanks

FWH 20.04/Harbour3.2/Bcc7.40+/ilink32/Pelles 9.0
EMail: amriazkhan@gmail.com
Pakistan
Posts: 1091
Joined: Thu Nov 17, 2005 11:08 AM
Re: LAN User Messaging Service
Posted: Fri Jan 08, 2016 12:21 PM
How it should work?
Such as post it
http://downloadcentral.no/upload/screenshot3132-0.jpg

? I did one for multple users.
Such as an email program?
Telegram? Whatsapp?
Marco Boschi
info@marcoboschi.it
Posts: 99
Joined: Fri Dec 16, 2011 03:30 PM
Re: LAN User Messaging Service
Posted: Fri Jan 08, 2016 01:07 PM

Hi Marco..

Perhaps, like whatsapp..

The system should work on hot key within the multiuser application.

Should list the active logged in users.

Select a user...and start a conversation

No need to save the conv

A very simple service..just type n send...

Thnx

Sent from my GT-N7105T using Tapatalk

FWH 20.04/Harbour3.2/Bcc7.40+/ilink32/Pelles 9.0
EMail: amriazkhan@gmail.com
Pakistan
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: LAN User Messaging Service
Posted: Fri Jan 08, 2016 03:53 PM

I built a messaging service into my application several years ago. However, it does not locate who is signed on, nor does it do alerts.

Users are placed in one file. When sending a message, the To box is a dropdown, so they select the users. I did this because some messages can then be sent to people who are not signed on, but they can get it when they return to their computer.

Using a Memo edit, messages are created and stored in a database on the server.

When someone is at their computer they can then check for their messages.

System level alerts would be a nice capability. I'll be looking at that in the coming weeks.

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 99
Joined: Fri Dec 16, 2011 03:30 PM
Re: LAN User Messaging Service
Posted: Fri Jan 08, 2016 05:19 PM

Yeh..thnx Tim,
Good idea..would be nice to have system alerts plus listing of currently logged on users..There must be a library for this routine. Im searching.

FWH 20.04/Harbour3.2/Bcc7.40+/ilink32/Pelles 9.0
EMail: amriazkhan@gmail.com
Pakistan
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: LAN User Messaging Service
Posted: Fri Jan 08, 2016 05:37 PM

It should be a handle into the Windows notification system. Probably pretty available in Win 10 with it's notification icon on the task bar.

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: LAN User Messaging Service
Posted: Mon Jan 11, 2016 04:08 PM
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: LAN User Messaging Service
Posted: Mon Jan 11, 2016 04:15 PM
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: LAN User Messaging Service
Posted: Mon Jan 11, 2016 04:16 PM

Not sure if we can use it from C language unless we find a C example. I only found C++ examples

Another choice is to implement it in a cpp file but not sure if it will work with our used C compilers

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM
Re: LAN User Messaging Service
Posted: Wed Jan 13, 2016 12:35 PM

Many year ago I remember was a CHAT class but it not run ok because the twebserv notwas ok

https://fivewin-contributions.googlecod ... HATTER.ZIP

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 99
Joined: Fri Dec 16, 2011 03:30 PM
Re: LAN User Messaging Service
Posted: Wed Jan 13, 2016 12:47 PM

Thnx Silvio,
Will chk it out. Many many years back I was using netlib library for the same purpose..worked beautifully. Will post a few screen shots, later.
Regards

FWH 20.04/Harbour3.2/Bcc7.40+/ilink32/Pelles 9.0
EMail: amriazkhan@gmail.com
Pakistan
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM
Re: LAN User Messaging Service
Posted: Sat Mar 19, 2016 08:46 AM

RiazKhan,
CAN YOU PUBBLISH A TEST ?

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: LAN User Messaging Service
Posted: Mon Jan 14, 2019 10:33 AM
Any new infos about a solution ( working sample )
I would like to send a message to the station
that belongs to a network FLOCK - error
working on the same DBF.

I created a sample testing network - functions with messages and xBrowse copy functions using my network-toolbox.

A test trying to PACK a DBF opened on another workstation as well
is showing a error-message.

As well I would like to show inside the message a list of all users working on the same DBF in case of any network - error ( ZAP, PACK ...)



regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: LAN User Messaging Service
Posted: Tue Jan 15, 2019 04:04 PM

Uwe,

You really shouldn't be doing zap, or pack except when you have exclusive use of the app. These should only be done by an admin when nobody else is using the app.

Better yet is to avoid these kinds of operations.

If you are using database objects, then my TData class has an optional TDataReuse class which reuses deleted records so you never have to do a pack. Or, you could try writing one yourself.

Either way, if you go one of the above routes, then you don't need messaging.

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
Re: LAN User Messaging Service
Posted: Wed Jan 16, 2019 01:41 AM
>Does anyone have a working sample of text messaging users currently using a multi user application over a local network ? Users need to message other users over a LAN.
Hello,
I use following function.
Best regards
Otto
Code (fw): Select all Collapse
function Benachrichtigung()
   *-----------------------------------------------
   local cRelauFle, hFile

   SysRefresh()
   *---------
   cRelauFle   := cFilePath( GetModuleFileName( GetInstance() ))+'\Benachrichtigung.Bat'
   hFile       := FCreate( cRelauFle, 0 )       // 0 Normal/Default,Read/Write
   if hFile >= 0
   
      FWrite( hFile, "msg " + ALLTRIM( users->user ) +  " " + ALLTRIM( users->pfad ) + ;
      " - Es gibt ein neues Update. Fuehren Sie bitte das Update aus.  " +CRLF )
      FWrite( hFile, "exit" + CRLF )
      FClose( hFile )
      SysRefresh()
      WAITRUN( cRelauFle, 0 )                   // 0 not show Cmd.exe Window, 1 yes

   endif
   *-----------------------------------------------
return NIL

//----------------------------------------------------------------------------//