Announcement

Collapse
No announcement yet.

Windows COM Interaction with Service (Need Client/Server App)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Windows COM Interaction with Service (Need Client/Server App)

    I am in the process of writing a Windows service and I need for the "client" EXE to communicate with the Windows service and send certain types of information. I'm confused on how to get the Windows service to load up and register the COM to the OS os the "client" can communicate.

    Not sure if that makes sense but I want the EXE (client running as a user process) to be able to talk with the Windows service and send data besides just service status messages.

    Anyone have any examples or sample code?

    Thanks!
    MICHAEL S. THOMASON

  • #2
    Thank goodness for the search facilities on these forums! Using only the terms "COM" and "client" as target title strings I was able to find this post among lots of others.

    I strongly recommend you to give it a try sometime, you will enjoy the results and get a faster service too!

    Comment


    • #3
      Quick Reply

      Chris:

      Maybe if you spent a little more time actually reading my question and less time replying with such tort responses you would have actually understood what I was asking.

      Your example shows something I already know how to do. I know how to write DLL's (INPROC32 COM Processes) and have client EXE's contact them.

      I'm looking for how to do out of process COM with PowerBasic under a Windows Service (i.e. service manager). I've not found anything in the service forums that go into this level of detail.

      I appreciate your response but I think lack professionalism was a little shocking.
      MICHAEL S. THOMASON

      Comment


      • #4
        Somewhere in help file is direct quote that the PB compilers cannot create out-of-process (*.exe) COM servers.

        But I think that means, "using native functions." That is, you can probably create an out-of-process COM server using some combination of Windows' API calls.

        However...
        Not sure if that makes sense but I want the EXE (client running as a user process) to be able to talk with the Windows service and send data besides just service status messages.
        You do not need a COM server to do that.
        Michael Mattias
        Tal Systems (retired)
        Port Washington WI USA
        [email protected]
        http://www.talsystems.com

        Comment


        • #5
          I*thought* this looked familiar.

          It is: http://www.powerbasic.com/support/pb...ad.php?t=41876

          >but I think lack professionalism was a little shocking

          And cross-posting demonstrates what?
          Michael Mattias
          Tal Systems (retired)
          Port Washington WI USA
          [email protected]
          http://www.talsystems.com

          Comment


          • #6
            Given the touchy nature of some here regarding "Proffesionalism" (http://www.powerbasic.com/support/pb...ad.php?t=41852), I think a new PB Forum rule should be adopted:

            "Henceforth and forthwith (forsooth too), given the absolute necessity of respect some here feel the reassuring need of,

            New Rule : Any time the word "prfessional" is used it shall be Capitolized, Bolded and Underlined - "Profesional".

            ================================
            "Reality is merely an illusion,
            albeit a very persistent one."
            Albert Einstein (1879-1955)
            ================================
            Last edited by Gösta H. Lovgren-2; 6 Nov 2009, 09:25 PM. Reason: Bill Maher reference
            It's a pretty day. I hope you enjoy it.

            Gösta

            JWAM: (Quit Smoking): http://www.SwedesDock.com/smoking
            LDN - A Miracle Drug: http://www.SwedesDock.com/LDN/

            Comment


            • #7
              Originally posted by MICHAEL S THOMASON View Post
              Maybe if you spent a little more time actually reading my question and less time replying with such tort responses you would have actually understood what I was asking.
              Tort eh? I may have to ask my lawyer about that one!

              Accepting your invitation and re-reading your question, I stand by my response. Had you included the two sentences from your second post:
              I know how to write DLL's (INPROC32 COM Processes) and have client EXE's contact them.

              I'm looking for how to do out of process COM with PowerBasic under a Windows Service (i.e. service manager). I've not found anything in the service forums that go into this level of detail.
              then I would have known at once that you had searched the forums, and knew what you were looking for, and would not have replied because I could not help you further.

              Comment


              • #8
                >Had you included the two sentences .....

                Communications issues? Here? STOP THE PRESSES!!!
                Michael Mattias
                Tal Systems (retired)
                Port Washington WI USA
                [email protected]
                http://www.talsystems.com

                Comment


                • #9
                  Try these:

                  http://www.powerbasic.com/support/downloads/windows.htm Generic Service Example

                  http://www.powerbasic.com/support/downloads/pbcc.htm Windows Service Example

                  Cheers,
                  Dale

                  Comment

                  Working...
                  X