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#
  4. Client-server distributed applications, what's the best .Net technology

Client-server distributed applications, what's the best .Net technology

Scheduled Pinned Locked Moved C#
csharpc++wcfcomsysadmin
5 Posts 3 Posters 2 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.
  • E Offline
    E Offline
    Elrond
    wrote on last edited by
    #1

    I have the need to build a client-server system. It will all be working on an intranet, distributed on multiple PCs. One will be a server application, hosted on a PC, that will manage the data. The second will be a client application. It will be used to read and modify the data. This application already exists, for the most, and is a C++ application. It is huge so it cannot be done from scratch again. I have seen that I can expose a COM interface from .Net, so I will probably do a library that will be used as an interface between my old C++ app and the .Net architecture. I also need the server to be able to send notifications to the client applications when some changes occurs, so I need a subscription mechanism. I am relatively new to .Net so I am not sure what the best technology is. I have looked at WCF, but it does not seem ideal for the subscription/notification part. Am I wrong? What else is there that could be better?

    D _ 2 Replies Last reply
    0
    • E Elrond

      I have the need to build a client-server system. It will all be working on an intranet, distributed on multiple PCs. One will be a server application, hosted on a PC, that will manage the data. The second will be a client application. It will be used to read and modify the data. This application already exists, for the most, and is a C++ application. It is huge so it cannot be done from scratch again. I have seen that I can expose a COM interface from .Net, so I will probably do a library that will be used as an interface between my old C++ app and the .Net architecture. I also need the server to be able to send notifications to the client applications when some changes occurs, so I need a subscription mechanism. I am relatively new to .Net so I am not sure what the best technology is. I have looked at WCF, but it does not seem ideal for the subscription/notification part. Am I wrong? What else is there that could be better?

      D Offline
      D Offline
      David Knechtges
      wrote on last edited by
      #2

      Instead of the COM dll you might consider using managed C++ for the old app. This will let you mix both managed (.NET) and unmanaged code in the same files and will give you all of the .NET stuff you might want. The other stuff, someone else might have to comment on. I use c# for my client server apps but I use straight sockets for my information.

      E 1 Reply Last reply
      0
      • D David Knechtges

        Instead of the COM dll you might consider using managed C++ for the old app. This will let you mix both managed (.NET) and unmanaged code in the same files and will give you all of the .NET stuff you might want. The other stuff, someone else might have to comment on. I use c# for my client server apps but I use straight sockets for my information.

        E Offline
        E Offline
        Elrond
        wrote on last edited by
        #3

        Thanks for the suggestion. I forgot to mention that the C++ app is still running in VC6, and unfortunately there is no plan to migrate it yet. So C++/CLI is out of the picture, though I had a look at it. Such a shame...

        1 Reply Last reply
        0
        • E Elrond

          I have the need to build a client-server system. It will all be working on an intranet, distributed on multiple PCs. One will be a server application, hosted on a PC, that will manage the data. The second will be a client application. It will be used to read and modify the data. This application already exists, for the most, and is a C++ application. It is huge so it cannot be done from scratch again. I have seen that I can expose a COM interface from .Net, so I will probably do a library that will be used as an interface between my old C++ app and the .Net architecture. I also need the server to be able to send notifications to the client applications when some changes occurs, so I need a subscription mechanism. I am relatively new to .Net so I am not sure what the best technology is. I have looked at WCF, but it does not seem ideal for the subscription/notification part. Am I wrong? What else is there that could be better?

          _ Offline
          _ Offline
          _Erik_
          wrote on last edited by
          #4

          I cannot tell you if WCF would be ideal for subscription/notification part, I don't know, but it can be done with WCF. You can find an example here[^] about WCF callbacks.

          E 1 Reply Last reply
          0
          • _ _Erik_

            I cannot tell you if WCF would be ideal for subscription/notification part, I don't know, but it can be done with WCF. You can find an example here[^] about WCF callbacks.

            E Offline
            E Offline
            Elrond
            wrote on last edited by
            #5

            Thanks, I will have a look at that.

            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