-
May 7th, 2010, 05:30 AM
#1
problem with socket
hi all,
First of all, I am a newbie in programming, and I have to make a simple tcp/ip (hello replied) server.
I am trying to follow the tutorial ini here : http://www.c-sharpcorner.com/uploadf...tserverst.aspx
to make a server. However, when I tried to do it in the ide (visual studio 2008), I got an error bellow
-----------------------------
Error 1 Program 'C:\Users\reza\Documents\Visual Studio 2008\Projects\WpfApplication2\WpfApplication2\obj\Debug\WpfApplication2.exe' has more than one entry point defined: 'WpfApplication2.App.Main()'. Compile with /main to specify the type that contains the entry point. C:\Users\reza\Documents\Visual Studio 2008\Projects\WpfApplication2\WpfApplication2\obj\Debug\App.g.cs 59 28 WpfApplication2
Error 2 Program 'C:\Users\reza\Documents\Visual Studio 2008\Projects\WpfApplication2\WpfApplication2\obj\Debug\WpfApplication2.exe' has more than one entry point defined: 'serv.Main()'. Compile with /main to specify the type that contains the entry point. C:\Users\reza\Documents\Visual Studio 2008\Projects\WpfApplication2\WpfApplication2\Window1.xaml.cs 8 24 WpfApplication2
---------------------------
It seems that there are to main functions, one in App.g.cs and the other one in Window1.xaml.cs. How am I supposed to fix this? I am sorry, but if it's possible, I would very appreciate if you use a simple language for explanation (not too high, I am still trying to grasp this language..)
Thank you
-
May 9th, 2010, 07:46 PM
#2
Re: problem with socket
You've created a WPF project. The sample you're referencing starts with a C# console application.
Do you know how to create a C# console project?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|