Click here to Skip to main content
15,888,325 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
I'm now using Visual Studio 2010. Once I have used in a program, the Microsoft example Chatter/Chatsrvr to exchange data between two programs. This examples works fine with the old version C++ 6.00.
I have managed to convert the Chatter/ChatSrvr to studio 2010 and the programs even run but....after a while the communication between the two programs stops without any error message!

I have tried to solve this but I can't. Please help me!

I know Visual 2010 uses win2sock and C++ 6.00 uses winsock.

Options/things I have tried so far:

1)
Studio 2010 must be capable of compiler with framwork 3.5. Somehow I'm not capable of doing that.

2)
I have tried keep-alive.

3)
I have checked the sending of messages. I seems that sending (by the client-chatter) is done, but somehow the messages don't result in a OnRecieve on the server side.
I don't know if the Client or the Server causes the trouble.

4)
I have been searching the internet for a similar example client-server with asynch socket and archives. Can't find it! (I want C++ and for studio 2010.) I don't know why Microsoft has removed this great example; What do they know that I don't? (Perhaps a lot more.....)
Posted
Updated 31-Jan-11 3:56am
v2

You're going to have to run both apps under the debugger to see what's happening. I don't see any way you can avoid doing that.
 
Share this answer
 
Re your point #1. I assume that you know how to select the 'Target Framework' in Properties so if you are not seeing a .NET version there it is probably because you don't have the framework on your system.

Mine offers all the way back to .NET 1.1, because I have all of those frameworks installed.
 
Share this answer
 
Comments
#realJSOP 31-Jan-11 10:56am    
He's using C++/MFC (if his tags are to be believed), and the version of .Net on his machine is therefore irrelevant to his project.
Henry Minute 31-Jan-11 10:56am    
Thanks John, I missed that.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900