Click here to Skip to main content
15,908,455 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Probllem related to recv() function in winsock.h header fle Pin
Mark Salsbery28-Nov-07 5:47
Mark Salsbery28-Nov-07 5:47 
In addition to led mike's reply...

Sockets work in bytes, that's it.  If you need to work with any other types
then you need to do the multiplication yourself to calculate the number of bytes
for a given type.

recv() is confusing with its char* type - it actually has nothing to do with
"characters" - it's just what the BYTE type was at the time it was designed. 
It's ancient, and most wish it would go away.

Mark



Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

Questionhow to read event log Pin
T@su27-Nov-07 22:39
T@su27-Nov-07 22:39 
AnswerRe: how to read event log Pin
Hamid_RT27-Nov-07 23:40
Hamid_RT27-Nov-07 23:40 
GeneralRe: how to read event log Pin
T@su28-Nov-07 1:07
T@su28-Nov-07 1:07 
GeneralRe: how to read event log Pin
David Crow28-Nov-07 3:13
David Crow28-Nov-07 3:13 
Questionlink error with DirectShow Pin
mwolf12227-Nov-07 22:23
mwolf12227-Nov-07 22:23 
AnswerRe: link error with DirectShow Pin
Amar Sutar27-Nov-07 23:19
Amar Sutar27-Nov-07 23:19 
GeneralRe: link error with DirectShow Pin
mwolf12228-Nov-07 16:04
mwolf12228-Nov-07 16:04 
QuestionWix installer Pin
Abhi Lahare27-Nov-07 21:53
Abhi Lahare27-Nov-07 21:53 
AnswerRe: Wix installer Pin
ThatsAlok27-Nov-07 22:45
ThatsAlok27-Nov-07 22:45 
JokeRe: Wix installer Pin
Nelek27-Nov-07 23:16
protectorNelek27-Nov-07 23:16 
GeneralRe: Wix installer Pin
ThatsAlok27-Nov-07 23:27
ThatsAlok27-Nov-07 23:27 
QuestionChanging the User account of a Service dynamically Pin
nlharshini27-Nov-07 21:38
nlharshini27-Nov-07 21:38 
QuestionInstall postgreSQL from MFC application? [modified] Pin
$uresh $hanmugam27-Nov-07 21:11
$uresh $hanmugam27-Nov-07 21:11 
QuestionRadio Buttons and Group Boxes Pin
XChibi27-Nov-07 21:10
XChibi27-Nov-07 21:10 
AnswerRe: Radio Buttons and Group Boxes Pin
Nelek27-Nov-07 22:16
protectorNelek27-Nov-07 22:16 
AnswerRe: Radio Buttons and Group Boxes Pin
Marimuthu.r27-Nov-07 22:39
Marimuthu.r27-Nov-07 22:39 
Questionchar** Pin
nitin327-Nov-07 21:05
nitin327-Nov-07 21:05 
AnswerRe: char** Pin
CPallini27-Nov-07 21:25
mveCPallini27-Nov-07 21:25 
GeneralRe: char** Pin
nitin327-Nov-07 22:30
nitin327-Nov-07 22:30 
GeneralRe: char** Pin
ThatsAlok27-Nov-07 22:52
ThatsAlok27-Nov-07 22:52 
GeneralRe: char** Pin
sumd27-Nov-07 23:06
sumd27-Nov-07 23:06 
AnswerRe: char** Pin
toxcct27-Nov-07 22:41
toxcct27-Nov-07 22:41 
GeneralRe: char** Pin
ThatsAlok27-Nov-07 22:51
ThatsAlok27-Nov-07 22:51 
GeneralRe: char** Pin
toxcct27-Nov-07 23:04
toxcct27-Nov-07 23:04 

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.