Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Windows Service

Windows Service

Scheduled Pinned Locked Moved C / C++ / MFC
c++csharpcomarchitecturequestion
11 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sanjutvm
    wrote on last edited by
    #1

    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.

    F H M T 5 Replies Last reply
    0
    • S sanjutvm

      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.

      F Offline
      F Offline
      FreeCastle
      wrote on last edited by
      #2

      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...

      S 1 Reply Last reply
      0
      • S sanjutvm

        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.

        H Offline
        H Offline
        Hamid Taebi
        wrote on last edited by
        #3

        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


        T 1 Reply Last reply
        0
        • S sanjutvm

          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.

          M Offline
          M Offline
          Mark Salsbery
          wrote on last edited by
          #4

          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."

          1 Reply Last reply
          0
          • S sanjutvm

            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.

            M Offline
            M Offline
            Mark Salsbery
            wrote on last edited by
            #5

            Also...everything you need to know about services can be found here: Services[^]

            "If you can dodge a wrench, you can dodge a ball."

            1 Reply Last reply
            0
            • F FreeCastle

              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...

              S Offline
              S Offline
              sanjutvm
              wrote on last edited by
              #6

              Hi, Thank u all for ur replies. Thanks & Regards, sanju

              1 Reply Last reply
              0
              • S sanjutvm

                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.

                T Offline
                T Offline
                ThatsAlok
                wrote on last edited by
                #7

                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

                1 Reply Last reply
                0
                • H Hamid Taebi

                  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


                  T Offline
                  T Offline
                  ThatsAlok
                  wrote on last edited by
                  #8

                  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

                  H 1 Reply Last reply
                  0
                  • T ThatsAlok

                    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

                    H Offline
                    H Offline
                    Hamid Taebi
                    wrote on last edited by
                    #9

                    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


                    T 1 Reply Last reply
                    0
                    • H Hamid Taebi

                      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


                      T Offline
                      T Offline
                      ThatsAlok
                      wrote on last edited by
                      #10

                      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

                      H 1 Reply Last reply
                      0
                      • T ThatsAlok

                        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

                        H Offline
                        H Offline
                        Hamid Taebi
                        wrote on last edited by
                        #11

                        Well I think some people will be surprise when they see your answer to their question after this time;)


                        WhiteSky


                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • World
                        • Users
                        • Groups