Windows Service
-
Hi, I have an exe which is created with document view architecture and developed in VC6.It has dependencies also.Now I want to convert the whole application into a service.I should not create a service and invoke the exe from the service. I need to redesign the whole application so that it becomes a service. How should i go for that? Should i use .net or VC6 itself? I'm planning to use VC6 itself bcoz it has many dependencies which are in vc6 and uses 3rd party dlls also. If using VC6, should i create using ATL COM appwizard -> Service.exe or simply create a cpp file for service? Thanks & Regrads, Sanju.
-
Hi, I have an exe which is created with document view architecture and developed in VC6.It has dependencies also.Now I want to convert the whole application into a service.I should not create a service and invoke the exe from the service. I need to redesign the whole application so that it becomes a service. How should i go for that? Should i use .net or VC6 itself? I'm planning to use VC6 itself bcoz it has many dependencies which are in vc6 and uses 3rd party dlls also. If using VC6, should i create using ATL COM appwizard -> Service.exe or simply create a cpp file for service? Thanks & Regrads, Sanju.
Well I think I can't really help you that much, but I also created a service some time ago. And I know that a service has to be created as a win32 console application, so I am wondering of how your application can work as a service (because it uses document/view architecture and consists therefore of a GUI). Because of that I think that you have some core logic in your application that works without a GUI. So you have to create a new console application for your service and put your "real" logic into that service. You can then rebuild your MFC app to access the logic in the service as a frontend (compare e.g. MSSQL Server: The "real" MSSQL server runs also as a service, but there exists also a frontend by which you can control this service). VC6 is very old now, and I would suggest to start every new project with a newer version. But because this is an older application and you use many other third party libraries for VC6 I would suggest to stay to VC6, just because then you maybe don't have that much problems...
-
Hi, I have an exe which is created with document view architecture and developed in VC6.It has dependencies also.Now I want to convert the whole application into a service.I should not create a service and invoke the exe from the service. I need to redesign the whole application so that it becomes a service. How should i go for that? Should i use .net or VC6 itself? I'm planning to use VC6 itself bcoz it has many dependencies which are in vc6 and uses 3rd party dlls also. If using VC6, should i create using ATL COM appwizard -> Service.exe or simply create a cpp file for service? Thanks & Regrads, Sanju.
I think you are new to write windows service if yes see this series articles "Driver Development Part 1: Introduction to Drivers" on the codeproject of Mr Toby Opferman(these articles use of VC 6) write service is different of write a program if you have a problem on your program you can simply find problem but on services its hard.;)
WhiteSky
-
Hi, I have an exe which is created with document view architecture and developed in VC6.It has dependencies also.Now I want to convert the whole application into a service.I should not create a service and invoke the exe from the service. I need to redesign the whole application so that it becomes a service. How should i go for that? Should i use .net or VC6 itself? I'm planning to use VC6 itself bcoz it has many dependencies which are in vc6 and uses 3rd party dlls also. If using VC6, should i create using ATL COM appwizard -> Service.exe or simply create a cpp file for service? Thanks & Regrads, Sanju.
If you're using doc/view then why make it a service? Service applications run in their own Windows instance and generally provide no user interface. Why do you need to make it a service? Mark
"If you can dodge a wrench, you can dodge a ball."
-
Hi, I have an exe which is created with document view architecture and developed in VC6.It has dependencies also.Now I want to convert the whole application into a service.I should not create a service and invoke the exe from the service. I need to redesign the whole application so that it becomes a service. How should i go for that? Should i use .net or VC6 itself? I'm planning to use VC6 itself bcoz it has many dependencies which are in vc6 and uses 3rd party dlls also. If using VC6, should i create using ATL COM appwizard -> Service.exe or simply create a cpp file for service? Thanks & Regrads, Sanju.
-
Well I think I can't really help you that much, but I also created a service some time ago. And I know that a service has to be created as a win32 console application, so I am wondering of how your application can work as a service (because it uses document/view architecture and consists therefore of a GUI). Because of that I think that you have some core logic in your application that works without a GUI. So you have to create a new console application for your service and put your "real" logic into that service. You can then rebuild your MFC app to access the logic in the service as a frontend (compare e.g. MSSQL Server: The "real" MSSQL server runs also as a service, but there exists also a frontend by which you can control this service). VC6 is very old now, and I would suggest to start every new project with a newer version. But because this is an older application and you use many other third party libraries for VC6 I would suggest to stay to VC6, just because then you maybe don't have that much problems...
-
Hi, I have an exe which is created with document view architecture and developed in VC6.It has dependencies also.Now I want to convert the whole application into a service.I should not create a service and invoke the exe from the service. I need to redesign the whole application so that it becomes a service. How should i go for that? Should i use .net or VC6 itself? I'm planning to use VC6 itself bcoz it has many dependencies which are in vc6 and uses 3rd party dlls also. If using VC6, should i create using ATL COM appwizard -> Service.exe or simply create a cpp file for service? Thanks & Regrads, Sanju.
sanjutvm wrote:
Should i use .net or VC6 itself? I'm planning to use VC6 itself bcoz it has many dependencies which are in vc6 and uses 3rd party dlls also. If using VC6, should i create using ATL COM appwizard -> Service.exe or simply create a cpp file for service?
try to search for srvany.exe in google.. it could run any exe at service!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and you
-
I think you are new to write windows service if yes see this series articles "Driver Development Part 1: Introduction to Drivers" on the codeproject of Mr Toby Opferman(these articles use of VC 6) write service is different of write a program if you have a problem on your program you can simply find problem but on services its hard.;)
WhiteSky
WhiteSky wrote:
rite service is different of write a program if you have a problem on your program you can simply find problem but on services its hard.
he he he,, who given you two vote! let me square it.. damm those people!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and you
-
WhiteSky wrote:
rite service is different of write a program if you have a problem on your program you can simply find problem but on services its hard.
he he he,, who given you two vote! let me square it.. damm those people!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and you
First of all hi alok how are you I seldom see you on the codeproject and thank you for your vote but may I ask a question 'm wondering how do you find this message 3 April:-D
WhiteSky
-
First of all hi alok how are you I seldom see you on the codeproject and thank you for your vote but may I ask a question 'm wondering how do you find this message 3 April:-D
WhiteSky
WhiteSky wrote:
and thank you for your vote but may I ask a question 'm wondering how do you find this message 3 April:-D
i started from where i left! :)
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and you
-
WhiteSky wrote:
and thank you for your vote but may I ask a question 'm wondering how do you find this message 3 April:-D
i started from where i left! :)
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and you
Well I think some people will be surprise when they see your answer to their question after this time;)
WhiteSky