Currently i am trying to make Client Server prototype with protocol buffer in visual studio 2010, what i am doing now, i have to create two different project(One for server file and another one for client file) in the same solution and it works in this way perfectly.
My problem is that if i put both server and client cpp file in a single project it gives error because there are two mains(Main in server and main in client file). Do any of you have any idea to execute both files by leaving them in a single project instead of creating two seperate projects in the same solution using Visual Studio?