Click here to Skip to main content
15,566,152 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionsimplest thread program doesn't work Pin
Spiritofamerica6-Sep-05 23:40
Spiritofamerica6-Sep-05 23:40 
AnswerRe: simplest thread program doesn't work Pin
Cedric Moonen6-Sep-05 23:57
Cedric Moonen6-Sep-05 23:57 
AnswerRe: simplest thread program doesn't work Pin
Hans Ruck6-Sep-05 23:58
Hans Ruck6-Sep-05 23:58 
AnswerRe: simplest thread program doesn't work Pin
Marc Soleda7-Sep-05 0:06
Marc Soleda7-Sep-05 0:06 
AnswerRe: simplest thread program doesn't work Pin
Bob Ciora7-Sep-05 4:03
Bob Ciora7-Sep-05 4:03 
AnswerRe: simplest thread program doesn't work Pin
LighthouseJ7-Sep-05 14:58
LighthouseJ7-Sep-05 14:58 
Questionopening file by double-clicking (FileDDE) broken in VS 7.1 ?! Pin
T.T.H.6-Sep-05 23:36
T.T.H.6-Sep-05 23:36 
Questionstringsend? Pin
Member 21610046-Sep-05 23:31
Member 21610046-Sep-05 23: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 Moonen7-Sep-05 0:13
Cedric Moonen7-Sep-05 0:13 
GeneralRe: stringsend? Pin
Member 21610047-Sep-05 0:39
Member 21610047-Sep-05 0:39 
GeneralRe: stringsend? Pin
Cedric Moonen7-Sep-05 0:45
Cedric Moonen7-Sep-05 0:45 
GeneralRe: stringsend? Pin
Member 21610047-Sep-05 18:20
Member 21610047-Sep-05 18:20 
AnswerRe: stringsend? Pin
kakan7-Sep-05 1:14
professionalkakan7-Sep-05 1:14 
QuestionAdding page number to word doc Pin
Barm6-Sep-05 22:46
Barm6-Sep-05 22:46 
QuestionChange Font of caption of dialog box ?? Pin
ana_v1236-Sep-05 21:59
ana_v1236-Sep-05 21:59 
AnswerRe: Change Font of caption of dialog box ?? Pin
Barm6-Sep-05 22:43
Barm6-Sep-05 22:43 
GeneralRe: Change Font of caption (title) of dialog box ?? Pin
Anonymous13-Sep-05 2:47
Anonymous13-Sep-05 2:47 
QuestionProper time to record Pin
LiYS6-Sep-05 21:20
LiYS6-Sep-05 21:20 
AnswerRe: Proper time to record Pin
David Crow7-Sep-05 4:22
David Crow7-Sep-05 4:22 
QuestionProblem related to CImageList(explanation) Pin
a_david1236-Sep-05 21:18
a_david1236-Sep-05 21:18 
QuestionHow does CListCtrl notify its parent window when a cell content has changed? Pin
followait6-Sep-05 21:18
followait6-Sep-05 21:18 
AnswerRe: How does CListCtrl notify its parent window when a cell content has changed? Pin
Ian Bowler7-Sep-05 14:39
Ian Bowler7-Sep-05 14:39 
GeneralRe: How does CListCtrl notify its parent window when a cell content has changed? Pin
followait7-Sep-05 17:15
followait7-Sep-05 17:15 
AnswerRe: How does CListCtrl notify its parent window when a cell content has changed? Pin
David Crow8-Sep-05 3:34
David Crow8-Sep-05 3:34 
QuestionSEARCH PATTERN Pin
russel.ak6-Sep-05 20:58
russel.ak6-Sep-05 20: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.