Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Starting FoxPro exe as a service?

Status
Not open for further replies.

Redsz

Programmer
Jul 30, 2002
158
CA
Hey guys. Im back with another question. I need to have a program running as a service. I have managed to get this up and running with srvany but now I can not interact with the exe as before i would place an icon in the system tray. Does anybody know of a way to have a program running as a service but allows user interaction?
 
Bump...

Or does anybody know how to code a program to start as a service?

Thx again
 
I'm a little confused by your question and not totally sure what you want...there are a couple of different solutions that I use for the tray icon one is FoxTray.ocx (free) which is a visual basic ocx (requires MSVBVM60.DLL be installed on user machine) and the other is bbSysTray.fll (cheap to register $8 last I looked), they both provide some events that you can use to respond to user clicking on the systray icon (right-click context menu and which menu item user selected)...as for the NT service you are creating...instsrv.exe with srvany.exe is a viable option, I tend to use Installshield professional and the NT Service object that it provides for my install set. What is it that your service is not doing and you would like it to do? Slighthaze = NULL
 
Redsz,
I'm also confused - Services are nomally automatically started (and stopped) by the OS and have no UI - they respond to events and requests in the OS. If you need to "interact" with it, I don't believe you want a service, or you will need another app to interface to it. (Note: I've never tried this, so I can't offer any code to do this.)

Why do you think you need it to be a service? What does it do? Is it that you just want to it start up automatically and prevent the user from "accidently" stopping it?

Rick
 
Maybe he wants that the OS start the FoxPro as service.
I saw that Windows .NET can start FoxPro as a service if you configure it as file sharing server and install the VFP 7.0. I can't tell too much because I was only playing with with the Admin Tools where you could add/remove services.
But I played too hard on it and crashed and I can't remember those settings.
Or he may wants to register it's vfp app as a service (like SQL server does).
More info could be usefull.
Regards
 
Redsz (Programmer)
I found something but didn't try it.
Go to vfp download section. Then go to page 4. Here you'll find Run a Vfp exe as a Service [color]July 4, 2002[/color].
Hope this helps.
Regards

As I go deeper the road seems to go further. We're just simply pasangers on the road of knowledge.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top