Click here to Skip to main content
15,945,347 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: the big-ending and little-ending Pin
dusty_dex13-Apr-13 12:16
dusty_dex13-Apr-13 12:16 
GeneralRe: the big-ending and little-ending Pin
pasztorpisti13-Apr-13 13:36
pasztorpisti13-Apr-13 13:36 
AnswerRe: the big-ending and little-ending Pin
pasztorpisti13-Apr-13 11:49
pasztorpisti13-Apr-13 11:49 
GeneralRe: the big-ending and little-ending Pin
ITboy_Lemon13-Apr-13 14:41
professionalITboy_Lemon13-Apr-13 14:41 
GeneralRe: the big-ending and little-ending Pin
pasztorpisti14-Apr-13 8:29
pasztorpisti14-Apr-13 8:29 
AnswerRe: the big-ending and little-ending Pin
Erudite_Eric13-Apr-13 23:37
Erudite_Eric13-Apr-13 23:37 
AnswerRe: the big-ending and little-ending Pin
jschell14-Apr-13 7:08
jschell14-Apr-13 7:08 
AnswerRe: the big-ending and little-ending Pin
Sarath C15-Apr-13 7:09
Sarath C15-Apr-13 7:09 
If you want your program to be portable, then any time you send an integer greater than 1 byte in size over the network, you must first convert it to network byte order using htons or htonl, and the receiving computer must convert it to host byte order using ntohs or ntohl. If you're sending computer may be an Intel x86, and the receiving may be a Sun SPARC, and then your program will fail if you don't use htons.
-Sarath.
My blog - iSpeak code

Rate the answers and close your posts if it's answered

QuestionHandling Cdialog's in a App. Pin
Donguy197612-Apr-13 16:50
Donguy197612-Apr-13 16:50 
AnswerRe: Handling Cdialog's in a App. Pin
Richard MacCutchan12-Apr-13 22:07
mveRichard MacCutchan12-Apr-13 22:07 
SuggestionRe: Handling Cdialog's in a App. Pin
David Crow13-Apr-13 15:30
David Crow13-Apr-13 15:30 
GeneralRe: Handling Cdialog's in a App. Pin
H.Brydon15-Apr-13 18:02
professionalH.Brydon15-Apr-13 18:02 
QuestionOutlook MSG files Pin
Joe Woodbury12-Apr-13 7:26
professionalJoe Woodbury12-Apr-13 7:26 
QuestionRe: Outlook MSG files Pin
David Crow13-Apr-13 15:32
David Crow13-Apr-13 15:32 
AnswerRe: Outlook MSG files Pin
Joe Woodbury13-Apr-13 15:56
professionalJoe Woodbury13-Apr-13 15:56 
QuestionDetecting when a file copy is complete Pin
Charles Blessing12-Apr-13 5:17
Charles Blessing12-Apr-13 5:17 
QuestionRe: Detecting when a file copy is complete Pin
David Crow12-Apr-13 5:22
David Crow12-Apr-13 5:22 
AnswerRe: Detecting when a file copy is complete Pin
Joe Woodbury12-Apr-13 8:08
professionalJoe Woodbury12-Apr-13 8:08 
GeneralRe: Detecting when a file copy is complete Pin
H.Brydon12-Apr-13 11:39
professionalH.Brydon12-Apr-13 11:39 
QuestionGet all window hadles Pin
Donguy197612-Apr-13 5:06
Donguy197612-Apr-13 5:06 
SuggestionRe: Get all window hadles Pin
David Crow12-Apr-13 5:17
David Crow12-Apr-13 5:17 
GeneralRe: Get all window hadles Pin
Donguy197612-Apr-13 10:22
Donguy197612-Apr-13 10:22 
GeneralRe: Get all window hadles Pin
ITboy_Lemon13-Apr-13 5:59
professionalITboy_Lemon13-Apr-13 5:59 
QuestionIs it a good practice to use continue Pin
Argonia12-Apr-13 0:27
professionalArgonia12-Apr-13 0:27 
AnswerRe: Is it a good practice to use continue Pin
Erudite_Eric12-Apr-13 0:49
Erudite_Eric12-Apr-13 0:49 

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.