Create a windows service in vb6

15,322

Solution 1

I've never tried it, but Desaware offer a commercial package, the NT Service Toolkit that claims to allow you to host a VB6 DLL inside a Windows Service. Desaware was founded (and I think is still owned by) VB6 guru Dan Appleman, which is a good recommendation.

Solution 2

Microsoft created a control to allow you to create services in VB6.

http://support.microsoft.com/default.aspx/kb/170883

http://support.microsoft.com/kb/175948/EN-US/

Yes, it works, is it the best way to create a service, no, but if VB6 is a requirement (you have a bunch of code you have to re-use), then I can state from experience that it works. We have the original control from the January 1997 MSDN, however you can easily find it on the net if need be ( http://www.google.ca/search?q=ntsvc.ocx+download )

Solution 3

Like gouging your own eyes out with a spoon, it is technically possible but I wouldn't recommend it.

Solution 4

Yes, you can. Just follow the directions in this tutorial:

http://www.vbrad.com/article.aspx?id=92

Share:
15,322
Admin
Author by

Admin

Updated on June 04, 2022

Comments

  • Admin
    Admin almost 2 years

    Is it possible to create a windows service in vb6? if yes, how?