Click here to Skip to main content
15,897,519 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: What's wrong.... Pin
Rajesh R Subramanian11-Jan-07 2:25
professionalRajesh R Subramanian11-Jan-07 2:25 
GeneralRe: What's wrong.... Pin
Eytukan11-Jan-07 2:34
Eytukan11-Jan-07 2:34 
GeneralRe: What's wrong.... Pin
John R. Shaw11-Jan-07 14:54
John R. Shaw11-Jan-07 14:54 
GeneralRe: What's wrong.... Pin
Eytukan11-Jan-07 19:36
Eytukan11-Jan-07 19:36 
GeneralRe: What's wrong.... Pin
Hamid_RT11-Jan-07 20:57
Hamid_RT11-Jan-07 20:57 
GeneralRe: What's wrong.... Pin
Astricks12-Jan-07 0:04
Astricks12-Jan-07 0:04 
AnswerRe: What's wrong.... Pin
neilsolent11-Jan-07 2:12
neilsolent11-Jan-07 2:12 
QuestionSocket Programming Pin
SrikanthVinayak Ram11-Jan-07 1:48
SrikanthVinayak Ram11-Jan-07 1:48 
Hi Jobin,

I have created a simple example to simulate TCP using MFC CSocket. The purpose of the code is Server Listens at port number 6000. Once client gets connects to 6000, client sends a message to Server and the server should display the received message. The server code is running correctly in the Application generated by AppWizardExe (include windows sockets check box Yes)but not at console based program.

The code is as follows

s.Create (6000);
s.Listen ();
s.Accept (t);
n = t.Receive ((void*)l,20);
l[n] = 0;
cout<
AnswerRe: Socket Programming Pin
Mark Salsbery11-Jan-07 5:13
Mark Salsbery11-Jan-07 5:13 
AnswerRe: Socket Programming Pin
David Leyva11-Jan-07 10:31
David Leyva11-Jan-07 10:31 
QuestionRe: Socket Programming Pin
SrikanthVinayak Ram11-Jan-07 18:40
SrikanthVinayak Ram11-Jan-07 18:40 
AnswerRe: Socket Programming Pin
Mark Salsbery12-Jan-07 6:37
Mark Salsbery12-Jan-07 6:37 
AnswerRe: Socket Programming Pin
Mark Salsbery12-Jan-07 6:39
Mark Salsbery12-Jan-07 6:39 
QuestionCDateTimeCtrl ideal size Pin
Watz11-Jan-07 1:02
Watz11-Jan-07 1:02 
QuestionSimplest way to display data in table form Pin
ldsdbomber11-Jan-07 0:33
ldsdbomber11-Jan-07 0:33 
AnswerRe: Simplest way to display data in table form Pin
Rage11-Jan-07 1:17
professionalRage11-Jan-07 1:17 
GeneralRe: Simplest way to display data in table form Pin
ldsdbomber11-Jan-07 1:38
ldsdbomber11-Jan-07 1:38 
QuestionHow to add rich edit control ?? Pin
Suresh H11-Jan-07 0:10
Suresh H11-Jan-07 0:10 
AnswerRe: How to add rich edit control ?? Pin
prasad_som11-Jan-07 0:25
prasad_som11-Jan-07 0:25 
GeneralRe: How to add rich edit control ?? Pin
Suresh H11-Jan-07 0:45
Suresh H11-Jan-07 0:45 
AnswerRe: How to add rich edit control ?? Pin
prasad_som11-Jan-07 1:08
prasad_som11-Jan-07 1:08 
GeneralRe: How to add rich edit control ?? Pin
Suresh H11-Jan-07 1:22
Suresh H11-Jan-07 1:22 
AnswerRe: How to add rich edit control ?? Pin
prasad_som11-Jan-07 1:26
prasad_som11-Jan-07 1:26 
GeneralRe: How to add rich edit control ?? Pin
Suresh H11-Jan-07 1:43
Suresh H11-Jan-07 1:43 
AnswerRe: How to add rich edit control ?? Pin
prasad_som11-Jan-07 1:55
prasad_som11-Jan-07 1:55 

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.