Click here to Skip to main content
15,925,371 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: inputing strings in new lines in edit box in MFC Pin
Rajesh R Subramanian30-Apr-07 0:38
professionalRajesh R Subramanian30-Apr-07 0:38 
AnswerRe: inputing strings in new lines in edit box in MFC Pin
David Crow30-Apr-07 3:06
David Crow30-Apr-07 3:06 
QuestionCDaoDatabase Pin
hero199529-Apr-07 23:26
hero199529-Apr-07 23:26 
QuestionRe: CDaoDatabase Pin
Rajesh R Subramanian30-Apr-07 0:41
professionalRajesh R Subramanian30-Apr-07 0:41 
AnswerRe: CDaoDatabase Pin
Khathar30-Apr-07 2:24
Khathar30-Apr-07 2:24 
AnswerRe: CDaoDatabase Pin
David Crow30-Apr-07 3:09
David Crow30-Apr-07 3:09 
QuestionHow can I send/receive a struct via winsock? Pin
deerhunter8929-Apr-07 23:25
deerhunter8929-Apr-07 23:25 
AnswerRe: How can I send/receive a struct via winsock? Pin
Mark Salsbery30-Apr-07 7:50
Mark Salsbery30-Apr-07 7:50 
sockets only understand bytes.

To send a struct you send it as a stream of bytes.

To get a pointer to the struct use the "address of" operator (&)
You'll need to cast this to a char* for some socket operations.

For the length of the struct (in bytes), use the sizeof operator.

When you receive the number of bytes equal to the sizeof the struct, you can cast a pointer to
those bytes into a struct pointer or just receive the bytes directly into a struct object.


"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder

QuestionRe: How can I send/receive a struct via winsock? Pin
deerhunter891-May-07 3:33
deerhunter891-May-07 3:33 
AnswerRe: How can I send/receive a struct via winsock? Pin
Moak1-May-07 3:59
Moak1-May-07 3:59 
QuestionRe: How can I send/receive a struct via winsock? Pin
deerhunter891-May-07 7:10
deerhunter891-May-07 7:10 
AnswerRe: How can I send/receive a struct via winsock? Pin
Moak1-May-07 7:33
Moak1-May-07 7:33 
GeneralRe: How can I send/receive a struct via winsock? Pin
deerhunter892-May-07 11:15
deerhunter892-May-07 11:15 
AnswerRe: How can I send/receive a struct via winsock? Pin
Mark Salsbery1-May-07 4:32
Mark Salsbery1-May-07 4:32 
AnswerRe: How can I send/receive a struct via winsock? Pin
Moak1-May-07 8:11
Moak1-May-07 8:11 
AnswerRe: How can I send/receive a struct via winsock? Pin
hmaturana30-Apr-07 13:36
hmaturana30-Apr-07 13:36 
Questionlist control and selected records Pin
hero199529-Apr-07 23:24
hero199529-Apr-07 23:24 
AnswerRe: list control and selected records Pin
Venkata Rama Subbarao30-Apr-07 1:45
Venkata Rama Subbarao30-Apr-07 1:45 
QuestionRe: list control and selected records Pin
David Crow30-Apr-07 3:17
David Crow30-Apr-07 3:17 
Questionthe equivalent of instructions in assembly Pin
zon_cpp29-Apr-07 22:51
zon_cpp29-Apr-07 22:51 
AnswerRe: the equivalent of instructions in assembly Pin
Cmania29-Apr-07 23:00
Cmania29-Apr-07 23:00 
AnswerRe: the equivalent of instructions in assembly Pin
Cmania29-Apr-07 23:06
Cmania29-Apr-07 23:06 
GeneralRe: the equivalent of instructions in assembly Pin
zon_cpp30-Apr-07 0:17
zon_cpp30-Apr-07 0:17 
GeneralRe: the equivalent of instructions in assembly Pin
markkuk30-Apr-07 0:29
markkuk30-Apr-07 0:29 
GeneralRe: the equivalent of instructions in assembly Pin
zon_cpp30-Apr-07 1:18
zon_cpp30-Apr-07 1:18 

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.