debjitk
asked on
VB 6.0 application as NT/2000 Service (without forms or OCX)
I am using the component SVCIT from ServiceMill for creating VB 6.0 Application to run as NT/2000 service. Now there are two things i need to know, is SVCIT better than NTSVC.OCX. Which one of them is more reliable since i am developing an application for a 24/7 environment and thus my app has to be very stable and reliable.
Now the second issue is my app reads all parameters from the windows registry whenever the service starts/restarts thus i do not need a form for the service application.
So can anyone help me regarding how to create a stable VB 6.0 application that would run as a service and does not need a form or any OCX control.
I small question along with that. When the Stop/Pause event fires in SVCIT or in NTSVC.OCX does the app stops automatically or i can wait for the current job to complete then stop/pause the app?
Regards,
Debjit Kar
Now the second issue is my app reads all parameters from the windows registry whenever the service starts/restarts thus i do not need a form for the service application.
So can anyone help me regarding how to create a stable VB 6.0 application that would run as a service and does not need a form or any OCX control.
I small question along with that. When the Stop/Pause event fires in SVCIT or in NTSVC.OCX does the app stops automatically or i can wait for the current job to complete then stop/pause the app?
Regards,
Debjit Kar
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi i checked the code at: http://www.freevbcode.com/ShowCode.Asp?ID=4317 but quite confused.
You could also make your program as normal, and use the following freeware program to get it to run as a service:
http://www.judoscript.com/goodies/RunExeSvc/index.html
Greets!
http://www.judoscript.com/goodies/RunExeSvc/index.html
Greets!
ASKER
Hello,
I am closing this question with thanks to ADSaunders.
Indeed if you want to create a windows service in VB 6.0 then the best options are to use NTSVC.OCX or ServiceMill Control.
Very recetly after i posted this question i tried my hands on VB.net Windows Services. They rock man! Anyone trying to create a windows service i would suggest VB.net instead of VB 6.0.
Generally it is not recommended to use VB 6.0 to create windows service.
Honestly, in VB.net creating a windows service is quite a wonderfull experience.
But if you still want to create your windows service in VB 6.0 then use NTSVC.OCX or ServiceMill Control.
Thx again to ADSaunders.
Regards,
Debjit Kar
I am closing this question with thanks to ADSaunders.
Indeed if you want to create a windows service in VB 6.0 then the best options are to use NTSVC.OCX or ServiceMill Control.
Very recetly after i posted this question i tried my hands on VB.net Windows Services. They rock man! Anyone trying to create a windows service i would suggest VB.net instead of VB 6.0.
Generally it is not recommended to use VB 6.0 to create windows service.
Honestly, in VB.net creating a windows service is quite a wonderfull experience.
But if you still want to create your windows service in VB 6.0 then use NTSVC.OCX or ServiceMill Control.
Thx again to ADSaunders.
Regards,
Debjit Kar
ASKER
I liked your suggestion....
but not closing the question here since i also wanted to know how to create VB 6.0 app to run as service without using Forms or any OCX controls.