Dan Fox wrote in chapter 19 of his book Pure Visual Basic, information on how to create a Visual Basic Service. It could be done in VB6 and even VB5 and VB4 32bit, if I recall.
Here is an article by Dan, VB.NET Makes Windows Services a Breeze talking about the finer points of writing a Visual Basic service using Visual Studio.NET
I had experience with srvany.exe from the Windows NT resource kit. It really was not a good solution for putting Windows console apps as a service, but it was all we had.
http://support.microsoft.com/kb/q137890/
Microsoft used to supply VB6 code that you could attempt to use to build a service application. It would appear that it is no longer available through MSDN, technet, or support. But now, what would be the point? Use Visual Studio .NET and create a Windows Service application in any language. The framework handles the rest.
Firedaemon?
A person from our corporate help desk was talking to me about one of our Windows 2000 servers about an issue. I mentioned that we had an app running on the console (renditions services) where you needed to be logged in. He recommended a program called FireDaemon. I would have blown him off, but he said he got it to work with a product I have worked with extensively from 1998-2003. I then gained newfound respect for him.
http://www.firedaemon.com
Quote:
FireDaemon is a utility that allows you to install and run virtually any native Win32 application or script (eg. BAT/CMD, Perl, Java, Python, TCL/TK) as a Windows NT, 2000, XP, 2003 & Longhorn service. FireDaemon features easy configuration (via GUI or XML), a low memory/CPU overhead, subprocess prioritisation, custom environments, CPU binding plus monitoring and logging to the event log and on-disk log files.
The Firedaemon Lite 1.6 "free" version is no longer available from them. But I may go with the trial version. The problem I have is that my app consists of two services that are already services, but need a specific user ID. These services do not work unless the console is logged. I believe the key is that they use the Adobe distiller, which Adobe warns you specifically should not run as a service.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest (c) 2006 by Group29 Productions.
You can syndicate Group29 Productions news with an RSS Feeder using the file backend.php