Click here to Skip to main content
15,888,171 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problems converting from VC++ 4.2 to VC++ 2005 Pin
Iain Clarke, Warrior Programmer17-Apr-08 3:25
Iain Clarke, Warrior Programmer17-Apr-08 3:25 
GeneralRe: Problems converting from VC++ 4.2 to VC++ 2005 Pin
jhwurmbach17-Apr-08 4:57
jhwurmbach17-Apr-08 4:57 
Questionhow to convert bytes array into int Pin
huma satti17-Apr-08 1:37
huma satti17-Apr-08 1:37 
AnswerRe: how to convert bytes array into int Pin
Iain Clarke, Warrior Programmer17-Apr-08 1:57
Iain Clarke, Warrior Programmer17-Apr-08 1:57 
QuestionRe: how to convert bytes array into int Pin
CPallini17-Apr-08 2:06
mveCPallini17-Apr-08 2:06 
GeneralRe: how to convert bytes array into int Pin
Iain Clarke, Warrior Programmer17-Apr-08 3:14
Iain Clarke, Warrior Programmer17-Apr-08 3:14 
AnswerRe: how to convert bytes array into int Pin
Cedric Moonen17-Apr-08 2:00
Cedric Moonen17-Apr-08 2:00 
AnswerRe: how to convert bytes array into int [modified] Pin
CPallini17-Apr-08 2:01
mveCPallini17-Apr-08 2:01 
It depends on byte ordering of your packet, i.e

Big Endian:
unsigned int n = (buff[0] << 8) | buff[1];


Little Endian:
unsigned int n = (buff[1] << 8) | buff[0];

Smile | :)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke


modified on Thursday, April 17, 2008 8:27 AM

AnswerRe: how to convert bytes array into int Pin
krmed17-Apr-08 7:17
krmed17-Apr-08 7:17 
GeneralGetting crash report from freezed program Pin
rrrado16-Apr-08 23:36
rrrado16-Apr-08 23:36 
GeneralRe: Getting crash report from freezed program Pin
James R. Twine17-Apr-08 8:02
James R. Twine17-Apr-08 8:02 
GeneralPlz, Help! win32 - edges on buttons Pin
Member 382549316-Apr-08 23:32
Member 382549316-Apr-08 23:32 
QuestionRe: Plz, Help! win32 - edges on buttons Pin
CPallini16-Apr-08 23:50
mveCPallini16-Apr-08 23:50 
JokeRe: Plz, Help! win32 - edges on buttons Pin
Rajesh R Subramanian17-Apr-08 1:14
professionalRajesh R Subramanian17-Apr-08 1:14 
GeneralRe: Plz, Help! win32 - edges on buttons Pin
Member 382549317-Apr-08 1:22
Member 382549317-Apr-08 1:22 
GeneralRe: Plz, Help! win32 - edges on buttons Pin
Rajesh R Subramanian17-Apr-08 1:35
professionalRajesh R Subramanian17-Apr-08 1:35 
GeneralRe: Plz, Help! win32 - edges on buttons Pin
Hamid_RT17-Apr-08 1:38
Hamid_RT17-Apr-08 1:38 
GeneralRe: Plz, Help! win32 - edges on buttons Pin
CPallini17-Apr-08 1:48
mveCPallini17-Apr-08 1:48 
GeneralRe: Plz, Help! win32 - edges on buttons Pin
Rajesh R Subramanian17-Apr-08 1:53
professionalRajesh R Subramanian17-Apr-08 1:53 
GeneralRe: Plz, Help! win32 - edges on buttons Pin
Hamid_RT17-Apr-08 2:00
Hamid_RT17-Apr-08 2:00 
GeneralRe: Plz, Help! win32 - edges on buttons Pin
Rajesh R Subramanian17-Apr-08 2:03
professionalRajesh R Subramanian17-Apr-08 2:03 
GeneralRe: Plz, Help! win32 - edges on buttons Pin
CPallini17-Apr-08 1:51
mveCPallini17-Apr-08 1:51 
JokeRe: Plz, Help! win32 - edges on buttons Pin
Hamid_RT17-Apr-08 2:00
Hamid_RT17-Apr-08 2:00 
JokeRe: Plz, Help! win32 - edges on buttons Pin
Rajesh R Subramanian17-Apr-08 2:01
professionalRajesh R Subramanian17-Apr-08 2:01 
GeneralRe: Plz, Help! win32 - edges on buttons Pin
CPallini17-Apr-08 2:06
mveCPallini17-Apr-08 2:06 

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.