Xbase program as service in background

This forum is for eXpress++ general support.
Post Reply
Message
Author
Victorio
Posts: 620
Joined: Sun Jan 18, 2015 11:43 am
Location: Slovakia

Xbase program as service in background

#1 Post by Victorio »

Hi,
Is possible create xbase app as service , which show in task bar on right side ? I need this to run on server where running more processes.

User avatar
Tom
Posts: 1165
Joined: Thu Jan 28, 2010 12:59 am
Location: Berlin, Germany

Re: Xbase program as service in background

#2 Post by Tom »

Hi, Victorio.

Using the systray (right part of the task bar in most cases) is not the same as apps running as services. You can put any kind of program to the systray, but you can't put a service there. But you can create services with Xbase++. Look at the "simple service" samples, which show what to do to create this kind of application. Services may not interact with the desktop (and don't have an icon, even not in the systray), services may have different environment. The systray ("Task Notification Area") is used for running programs that don't have active windows. We use codejock to populate the systray for instance with an interactive icon for our server software, but maybe Xbase++ is able to populate the systray itself - we didn't check this for years. But I don't find "systray" in the Xbase++-help docs.
Best regards,
Tom

"Did I offend you?"
"No."
"Okay, give me a second chance."

User avatar
Auge_Ohr
Posts: 1405
Joined: Wed Feb 24, 2010 3:44 pm

Re: Xbase program as service in background

#3 Post by Auge_Ohr »

hi,

to use "Tray" , in lower / right, you can use TNotifyIcon() Class from Pablo Botella using Ot4xb LIB
Attachments
TaskBarIcon.zip
need Ot4xb
(5.61 KiB) Downloaded 269 times
greetings by OHR
Jimmy

skiman
Posts: 1183
Joined: Thu Jan 28, 2010 1:22 am
Location: Sijsele, Belgium
Contact:

Re: Xbase program as service in background

#4 Post by skiman »

Hi,

We are using the following to install services.
https://nssm.cc/commands

Just create your xbase application without any user interface. It can accept parameters at startup, so you can use the same EXE for multiple different services.
Then install it from the command line with the nssm program.
Best regards,

Chris.
www.aboservice.be

Victorio
Posts: 620
Joined: Sun Jan 18, 2015 11:43 am
Location: Slovakia

Re: Xbase program as service in background

#5 Post by Victorio »

Thanks , i will look it

User avatar
Tom
Posts: 1165
Joined: Thu Jan 28, 2010 12:59 am
Location: Berlin, Germany

Re: Xbase program as service in background

#6 Post by Tom »

We are using the following to install services.
Xbase++ has everything on board for installing and controlling services. Just look at the samples and the ServiceController class.
Best regards,
Tom

"Did I offend you?"
"No."
"Okay, give me a second chance."

Post Reply