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