Page 1 of 2

hmg application in service mode, possible?

Posted: Sun Jan 20, 2013 2:12 pm
by leslie_m
Hello Experts!
I was here a long time ago, welcome to everyone!

I wrote one client - server application, used a "Hmgtalk" sample.
I want to use the "Talkserver.exe" on Windows server 2003 SBS, in service mode.
Because in normal mode it's closed after the user logged off.

How can I compile my HMG project to service application?

I tried instsrv.exe from the "windows resource kit". It's working fine on Windows XP, but doesn't put my apps to service mode in win2003 server.

What's wrong in this procedure?
Any idea?
Thanks for help...
Leslie

Re: hmg application in service mode, possible?

Posted: Mon Jan 21, 2013 10:26 am
by jayadevu
Hi,

May be the following link is of some help to you:
http://blog.super-networking.net/2008/0 ... rver-2003/

Hope that helps,

Warm regards,

Jayadev

Re: hmg application in service mode, possible?

Posted: Mon Jan 21, 2013 11:03 am
by leslie_m
Hallo Jayadev!
Thank you for your reply,

I have this description, I tried it already. The HMG program is started as service, but it is closed, when I logged out from the server console. Unfortunately only on Win server. Under windows XP is working fine, in service mode.
I want to know, how can I make direct service mode compiled file in HMG, if it's possible.

I do not find any info about it...

Best regards,
Leslie

Re: hmg application in service mode, possible?

Posted: Thu Mar 20, 2014 1:05 pm
by karweru
Hi Leslie,

Did you ever get a solution to this? If so, kindly share.

Regards
Gilbert.

Re: hmg application in service mode, possible?

Posted: Thu Mar 20, 2014 1:27 pm
by leslie_m
Hi Karweru!

Unfortunately I did not find any good solution for this problem yet.
If I get it, I will share it.

Regards
Leslie

Re: hmg application in service mode, possible?

Posted: Fri Mar 21, 2014 12:44 pm
by karweru
I found this https://github.com/vszakats/harbour-cor ... winsvc.prg by Victor. I havbent tried but will and report back

regards
Gilbert

Re: hmg application in service mode, possible?

Posted: Fri Mar 21, 2014 3:23 pm
by leslie_m
Wow,

Looks like it's a solution...

If you can try it, pls. share the result.

Thx
Leslie

Re: hmg application in service mode, possible?

Posted: Mon May 19, 2014 9:56 am
by karweru
Hi Leslie,

I finally got it going. Please have a look at the code attched. I've tested on Windows 7 professional. The actual functionality is based on code by Viktor (quoted above).
I still got some problems though. I cant start/Stop the server from my code. Also, while I can start the server from windows administrative tools window, I cant stop it. Maybe someone in this forum might point us to the right direction?.

Re: hmg application in service mode, possible?

Posted: Wed Aug 19, 2026 9:38 pm
by danielmaximiliano
Hola a todos:
ya tengo la version modificada del ejemplo TalkServer con API REST, despues publico el codigo

Re: hmg application in service mode, possible?

Posted: Thu Aug 20, 2026 9:34 pm
by danielmaximiliano
Hola a todos, estoy casi terminando el nuevo TalkServer y Talkclient.
todavia tengo un error ya fue solucionado pero fue introducido de nuevo :roll:
Captura de pantalla 2026-08-20 183132.png
Captura de pantalla 2026-08-20 183132.png (73.05 KiB) Viewed 141 times
Captura de pantalla 2026-08-20 183720.png
Captura de pantalla 2026-08-20 183720.png (28.67 KiB) Viewed 141 times