general knowledge question
hi
just a quick question, if it is possible to make an vb6 app exe file run as a windows service rather than a system tray icon
and if possible which language of code must i use to make it possible
many thanks in advance
Rob
[256 byte] By [
Spumbu1977] at [2007-11-11 7:45:55]

# 1 Re: general knowledge question
yes, but not easily. you have to create a ActiveX exe and then either use a commercial third party control to run it as a server, or try to code it yourself. Although you can find a lot of code in the net on "how to create a windows service in VB", this is not supported by Microsoft. In the past Microsoft was providing a dll for that, but it was not supported and although it is still available for free on some sites, use at your own risk.
My suggestion: to avoid headaches, it is much better better to write the service in C++, or to buy a good third party control to run a VB server as a service.
Marco
mstraf at 2007-11-11 17:26:28 >

# 2 Re: general knowledge question
The following should help:
http://vbwire.com/advanced/howto/service.asp
http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/dnaractivex/html/msdn_ntsrvocx.asp