Click here to Skip to main content
15,886,362 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionsimplest thread program doesn't work Pin
Spiritofamerica6-Sep-05 22:40
Spiritofamerica6-Sep-05 22:40 
AnswerRe: simplest thread program doesn't work Pin
Cedric Moonen6-Sep-05 22:57
Cedric Moonen6-Sep-05 22:57 
AnswerRe: simplest thread program doesn't work Pin
Hans Ruck6-Sep-05 22:58
Hans Ruck6-Sep-05 22:58 
AnswerRe: simplest thread program doesn't work Pin
Marc Soleda6-Sep-05 23:06
Marc Soleda6-Sep-05 23:06 
AnswerRe: simplest thread program doesn't work Pin
Bob Ciora7-Sep-05 3:03
Bob Ciora7-Sep-05 3:03 
AnswerRe: simplest thread program doesn't work Pin
LighthouseJ7-Sep-05 13:58
LighthouseJ7-Sep-05 13:58 
Questionopening file by double-clicking (FileDDE) broken in VS 7.1 ?! Pin
T.T.H.6-Sep-05 22:36
T.T.H.6-Sep-05 22:36 
Questionstringsend? Pin
Member 21610046-Sep-05 22:31
Member 21610046-Sep-05 22:31 
If I don't want the length of the string to be sent but I just want the sting that I type send to server. How to I change the code? Bytesend to strsend? how to change the lstrlen?Confused | :confused:

// Send and receive data.
long bytesSent;
long bytesRecv = SOCKET_ERROR;
char sendbuf[300] = "Client: Sending data.";
char recvbuf[300] = "";


bytesSent = send( m_socket, sendbuf, lstrlen(sendbuf), 0 );
printf( "Bytes Sent: %ld\n", bytesSent );

while( bytesRecv == SOCKET_ERROR )
{
bytesRecv = recv( m_socket, recvbuf, 300, 0 );
if ( bytesRecv == 0 || bytesRecv == WSAECONNRESET )
{
printf( "Connection Closed.\n");
break;
}
if (bytesRecv < 0)
return;
printf( "Bytes Recv: %ld\n", bytesRecv );
}

return;
AnswerRe: stringsend? Pin
Cedric Moonen6-Sep-05 23:13
Cedric Moonen6-Sep-05 23:13 
GeneralRe: stringsend? Pin
Member 21610046-Sep-05 23:39
Member 21610046-Sep-05 23:39 
GeneralRe: stringsend? Pin
Cedric Moonen6-Sep-05 23:45
Cedric Moonen6-Sep-05 23:45 
GeneralRe: stringsend? Pin
Member 21610047-Sep-05 17:20
Member 21610047-Sep-05 17:20 
AnswerRe: stringsend? Pin
kakan7-Sep-05 0:14
professionalkakan7-Sep-05 0:14 
QuestionAdding page number to word doc Pin
Barm6-Sep-05 21:46
Barm6-Sep-05 21:46 
QuestionChange Font of caption of dialog box ?? Pin
ana_v1236-Sep-05 20:59
ana_v1236-Sep-05 20:59 
AnswerRe: Change Font of caption of dialog box ?? Pin
Barm6-Sep-05 21:43
Barm6-Sep-05 21:43 
GeneralRe: Change Font of caption (title) of dialog box ?? Pin
Anonymous13-Sep-05 1:47
Anonymous13-Sep-05 1:47 
QuestionProper time to record Pin
LiYS6-Sep-05 20:20
LiYS6-Sep-05 20:20 
AnswerRe: Proper time to record Pin
David Crow7-Sep-05 3:22
David Crow7-Sep-05 3:22 
QuestionProblem related to CImageList(explanation) Pin
a_david1236-Sep-05 20:18
a_david1236-Sep-05 20:18 
QuestionHow does CListCtrl notify its parent window when a cell content has changed? Pin
followait6-Sep-05 20:18
followait6-Sep-05 20:18 
AnswerRe: How does CListCtrl notify its parent window when a cell content has changed? Pin
Ian Bowler7-Sep-05 13:39
Ian Bowler7-Sep-05 13:39 
GeneralRe: How does CListCtrl notify its parent window when a cell content has changed? Pin
followait7-Sep-05 16:15
followait7-Sep-05 16:15 
AnswerRe: How does CListCtrl notify its parent window when a cell content has changed? Pin
David Crow8-Sep-05 2:34
David Crow8-Sep-05 2:34 
QuestionSEARCH PATTERN Pin
russel.ak6-Sep-05 19:58
russel.ak6-Sep-05 19:58 

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.