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. C# client server communication [modified]

C# client server communication [modified]

Scheduled Pinned Locked Moved C#
csharpvisual-studiohelpsysadmindebugging
3 Posts 3 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.
  • M Offline
    M Offline
    mrithula8
    wrote on last edited by
    #1

    Hi I am working with WindowsApplication in VS 2005. I want create a UDP client server chat application... I have a separate Client and Server class... By default a WindowsApplication has Program.cs file which has a Main().... I am not able to define a Main() either in Client or Server class... It gives me an error stating: Error 1 Program 'C:\Documents and Settings\admin\My Documents\Visual Studio 2005\Projects\WindowsApplication11\WindowsApplication11\obj\Debug\WindowsApplication11.exe' has more than one entry point defined: What should i do for this?Please explain me this Thanks for any help in advance.

    modified on Friday, February 20, 2009 10:56 AM

    R 1 Reply Last reply
    0
    • M mrithula8

      Hi I am working with WindowsApplication in VS 2005. I want create a UDP client server chat application... I have a separate Client and Server class... By default a WindowsApplication has Program.cs file which has a Main().... I am not able to define a Main() either in Client or Server class... It gives me an error stating: Error 1 Program 'C:\Documents and Settings\admin\My Documents\Visual Studio 2005\Projects\WindowsApplication11\WindowsApplication11\obj\Debug\WindowsApplication11.exe' has more than one entry point defined: What should i do for this?Please explain me this Thanks for any help in advance.

      modified on Friday, February 20, 2009 10:56 AM

      R Offline
      R Offline
      Rob Philpott
      wrote on last edited by
      #2

      So, do you have a solution with two executable projects in it? I suspect the error message is telling you exactly the problem. Also, you are aware the UDP is a hopelessly unreliable protocol and you'll need to develop your own error checking if you don't want your messages going missing?

      Regards, Rob Philpott.

      M 1 Reply Last reply
      0
      • R Rob Philpott

        So, do you have a solution with two executable projects in it? I suspect the error message is telling you exactly the problem. Also, you are aware the UDP is a hopelessly unreliable protocol and you'll need to develop your own error checking if you don't want your messages going missing?

        Regards, Rob Philpott.

        M Offline
        M Offline
        Mel Feik
        wrote on last edited by
        #3

        Sounds like the message is correct - suspect a pasted example that has its own main (???) And I wouldn't go so far as "hopelessly" unreliable. There are times when UDP can be implemented with the same reliability as TCP - at least I "hope" so, or I might have to go back to the basement where I belong before I get to much farther along in my current project (see post above).

        --------------------------------------------- Help... I'm embedded and I can't get out! If they don't get the basic research and learning skills down then they'll end up having a very hard life (Either that or they'll become managers) - Micheal P Butler

        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