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

C / C++ / MFC

 
GeneralRe: Windows XP look and feel Pin
Member 223710418-Sep-05 19:59
Member 223710418-Sep-05 19:59 
GeneralRe: Windows XP look and feel Pin
toxcct18-Sep-05 20:33
toxcct18-Sep-05 20:33 
GeneralRe: Windows XP look and feel Pin
Member 223710418-Sep-05 23:37
Member 223710418-Sep-05 23:37 
GeneralRe: Windows XP look and feel Pin
Christian Graus19-Sep-05 10:53
protectorChristian Graus19-Sep-05 10:53 
GeneralRe: Windows XP look and feel Pin
Taka Muraoka18-Sep-05 23:29
Taka Muraoka18-Sep-05 23:29 
Questionconsole to dialog Pin
Member 216100418-Sep-05 16:19
Member 216100418-Sep-05 16:19 
AnswerRe: console to dialog Pin
Christian Graus18-Sep-05 17:26
protectorChristian Graus18-Sep-05 17:26 
GeneralRe: console to dialog Pin
Member 216100418-Sep-05 17:44
Member 216100418-Sep-05 17:44 
Below is the code at the console application to send and receive:
// Send and receive data.
int bytesSent;
int bytesRecv = SOCKET_ERROR;
char sendbuf[300] = "Door Close";
char recvbuf[300] = "";
bytesRecv = recv( m_socket, recvbuf, 300, 0 );
prinf( "String Recv: %s\n", recvbuf );
bytesSent = send( m_socket, sendbuf, lstrlen(sendbuf), 0 );
printf( "String Sent: %s\n", recvbuf );

It will send a "Door Close" to server. I copy this into the dialog that to send "Door Close" when I click on that button, But I dont' know how to chage it so that it can send.


GeneralRe: console to dialog Pin
Christian Graus18-Sep-05 17:48
protectorChristian Graus18-Sep-05 17:48 
GeneralRe: console to dialog Pin
Member 216100418-Sep-05 18:09
Member 216100418-Sep-05 18:09 
GeneralRe: console to dialog Pin
Christian Graus18-Sep-05 18:10
protectorChristian Graus18-Sep-05 18:10 
GeneralRe: console to dialog Pin
Member 216100418-Sep-05 20:43
Member 216100418-Sep-05 20:43 
GeneralRe: console to dialog Pin
Bob Stanneveld18-Sep-05 22:22
Bob Stanneveld18-Sep-05 22:22 
GeneralRe: console to dialog Pin
Christian Graus19-Sep-05 10:55
protectorChristian Graus19-Sep-05 10:55 
QuestionCFileDialog Pin
Achim Klein18-Sep-05 12:14
Achim Klein18-Sep-05 12:14 
AnswerRe: CFileDialog Pin
Achim Klein18-Sep-05 12:28
Achim Klein18-Sep-05 12:28 
AnswerRe: CFileDialog Pin
Achim Klein24-Sep-05 0:27
Achim Klein24-Sep-05 0:27 
QuestionWindows Installer Question Pin
Cpt Rick18-Sep-05 9:11
Cpt Rick18-Sep-05 9:11 
QuestionPress any key to continue Pin
kenexcelon18-Sep-05 6:23
kenexcelon18-Sep-05 6:23 
AnswerRe: Press any key to continue Pin
kenexcelon18-Sep-05 6:23
kenexcelon18-Sep-05 6:23 
AnswerRe: Press any key to continue Pin
Ghasrfakhri18-Sep-05 6:26
Ghasrfakhri18-Sep-05 6:26 
GeneralRe: Press any key to continue Pin
kenexcelon18-Sep-05 6:42
kenexcelon18-Sep-05 6:42 
GeneralRe: Press any key to continue Pin
User 1278218-Sep-05 17:39
User 1278218-Sep-05 17:39 
QuestionHow to locate a file handle for applying DuplicateHandle() ? Pin
Hillel18-Sep-05 5:02
Hillel18-Sep-05 5:02 
QuestionListView Multiple selction problem Pin
ayon11118-Sep-05 4:30
ayon11118-Sep-05 4:30 

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.