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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Run as a service - which method is best???

Status
Not open for further replies.

VBorDeliver

Programmer
Jul 3, 2002
7
0
0
GB
Hi!

I have been looking at running my VB6 app as a service and have come across 2 methods. One using the Microsoft 'ntsvc.ocx' and the other using API calls.

I have looked at the ocx control which looks by far the easiest but can't get the sample program to work on my Windows 2000 Pro workstation. The service installs and uninstalls OK but does fails to start (Event ID 1). I have an example using API calls that works but looks very complex.

Which is the best method to use that works on both NT and 2000 machines?
 
thread222-339517 recently had some suggestions, but there are other threads!

Matt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top