Click here to Skip to main content
15,898,538 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: sockets in MFC Pin
Nishad S9-Mar-09 3:07
Nishad S9-Mar-09 3:07 
GeneralRe: sockets in MFC Pin
hrishiS9-Mar-09 2:56
hrishiS9-Mar-09 2:56 
GeneralRe: sockets in MFC Pin
Code-o-mat9-Mar-09 3:00
Code-o-mat9-Mar-09 3:00 
GeneralRe: sockets in MFC Pin
hrishiS9-Mar-09 3:05
hrishiS9-Mar-09 3:05 
GeneralRe: sockets in MFC Pin
Code-o-mat9-Mar-09 3:13
Code-o-mat9-Mar-09 3:13 
GeneralRe: sockets in MFC Pin
hrishiS9-Mar-09 3:29
hrishiS9-Mar-09 3:29 
GeneralRe: sockets in MFC Pin
Code-o-mat9-Mar-09 3:44
Code-o-mat9-Mar-09 3:44 
AnswerRe: sockets in MFC Pin
Eytukan9-Mar-09 3:17
Eytukan9-Mar-09 3:17 
Let me explain you that one,


1.Do not start with Dialog or Doc/View conversation. First think about implementing your chat/messaging mechanism. I guess you have been coming around MFC sockets. If you ask me, I'm not for it.I did not like to work with it. You can directly use winsock2.

2. Write a simple TCP client server application in console mode. Once you find the application running and you are clear with the idea, make a simple class that takes care of simple functionalities like connecting, sending & accepting messages.

3. First try for single client-server application. When you are comfortable with it you can move to Multi-client application that would involve threading in most cases.

4. Now you are clear with Sending & receiving messages using winsock.

5. For server part, you can ultimately go for windows services implementation, but to start with I do not recommend it. Because as you are a beginner, you will have to trouble shoot a lot of things at first. So just make it a console server. Where you'll be able to view the messages going across.

6. For client, you can have it as Dialog application, but again it's just based on the need. You can even go for SDI if you want to make use of Serialize-Archive functionality of the document. It could be useful when you save down your chat conversation.

7. Did I answer you?

He never answers anyone who replies to him. I've taken to calling him a retard, which is not fair to retards everywhere.-Christian Graus

GeneralRe: sockets in MFC [modified] Pin
hrishiS9-Mar-09 3:26
hrishiS9-Mar-09 3:26 
GeneralRe: sockets in MFC Pin
Eytukan9-Mar-09 3:38
Eytukan9-Mar-09 3:38 
GeneralRe: sockets in MFC Pin
Eytukan9-Mar-09 3:42
Eytukan9-Mar-09 3:42 
GeneralRe: sockets in MFC Pin
hrishiS9-Mar-09 3:48
hrishiS9-Mar-09 3:48 
AnswerRe: sockets in MFC Pin
Eytukan9-Mar-09 4:00
Eytukan9-Mar-09 4:00 
AnswerRe: sockets in MFC Pin
SandipG 9-Mar-09 3:21
SandipG 9-Mar-09 3:21 
GeneralRe: sockets in MFC Pin
Eytukan9-Mar-09 3:44
Eytukan9-Mar-09 3:44 
AnswerRe: sockets in MFC [modified] Pin
ShiXiangYang9-Mar-09 20:50
ShiXiangYang9-Mar-09 20:50 
GeneralRe: sockets in MFC Pin
hrishiS9-Mar-09 21:45
hrishiS9-Mar-09 21:45 
Questionproblem in strcat function Pin
raj15769-Mar-09 2:09
raj15769-Mar-09 2:09 
AnswerRe: problem in strcat function Pin
Cedric Moonen9-Mar-09 2:12
Cedric Moonen9-Mar-09 2:12 
AnswerRe: problem in strcat function Pin
Nishad S9-Mar-09 2:13
Nishad S9-Mar-09 2:13 
GeneralRe: problem in strcat function Pin
raj15769-Mar-09 2:16
raj15769-Mar-09 2:16 
GeneralRe: problem in strcat function Pin
Nishad S9-Mar-09 2:19
Nishad S9-Mar-09 2:19 
AnswerRe: problem in strcat function Pin
David Crow9-Mar-09 4:16
David Crow9-Mar-09 4:16 
GeneralRe: problem in strcat function Pin
Eytukan9-Mar-09 4:45
Eytukan9-Mar-09 4:45 
JokeRe: problem in strcat function Pin
Cedric Moonen9-Mar-09 5:04
Cedric Moonen9-Mar-09 5:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.