Click here to Skip to main content
15,903,388 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionGDI+ what happened to GetPixel() ? Pin
Greg Ellis11-Jun-03 9:53
Greg Ellis11-Jun-03 9:53 
GeneralByte-swapping... Pin
Nitron11-Jun-03 9:50
Nitron11-Jun-03 9:50 
GeneralRe: Byte-swapping... Pin
Joaquín M López Muñoz11-Jun-03 10:07
Joaquín M López Muñoz11-Jun-03 10:07 
GeneralRe: Byte-swapping... Pin
Nitron11-Jun-03 10:12
Nitron11-Jun-03 10:12 
GeneralRe: Byte-swapping... Pin
Joaquín M López Muñoz11-Jun-03 10:23
Joaquín M López Muñoz11-Jun-03 10:23 
GeneralRe: Byte-swapping... Pin
John M. Drescher11-Jun-03 10:07
John M. Drescher11-Jun-03 10:07 
GeneralRe: Byte-swapping... Pin
PJ Arends11-Jun-03 15:52
professionalPJ Arends11-Jun-03 15:52 
GeneralRe: Byte-swapping... Pin
Nitron12-Jun-03 3:44
Nitron12-Jun-03 3:44 
sweet! thanx.

I also found a fun little function tucked away in winsock2.h...

u_long ntohl (
  u_long netlong  
);


The ntohl function takes a 32-bit number in TCP/IP network byte order and returns a 32-bit number in host byte order.



in other words: byte swap. Who'd a thought.

Anyway, I like your approach better, it's more generic. Thanks again!

- Nitron


"Those that say a task is impossible shouldn't interrupt the ones who are doing it." - Chinese Proverb
GeneralRe: Byte-swapping... Pin
Johnny ²12-Jun-03 4:24
Johnny ²12-Jun-03 4:24 
GeneralRe: Byte-swapping... Pin
Nitron12-Jun-03 4:27
Nitron12-Jun-03 4:27 
GeneralRe: Byte-swapping... Pin
Peter Weyzen12-Jun-03 20:58
Peter Weyzen12-Jun-03 20:58 
Generalstrange problem occur while trying to access member function through static function Pin
yccheok11-Jun-03 9:32
yccheok11-Jun-03 9:32 
GeneralRe: strange problem occur while trying to access member function through static function Pin
Phil Hamer11-Jun-03 11:56
Phil Hamer11-Jun-03 11:56 
GeneralRe: strange problem occur while trying to access member function through static function Pin
yccheok12-Jun-03 0:55
yccheok12-Jun-03 0:55 
GeneralCListView Pin
schoni11-Jun-03 8:32
schoni11-Jun-03 8:32 
Generalcapturing embedded control messages Pin
will138311-Jun-03 7:33
will138311-Jun-03 7:33 
Generallow leve audio api Pin
Gaurs11-Jun-03 7:10
Gaurs11-Jun-03 7:10 
GeneralRe: low leve audio api Pin
Mike Nordell12-Jun-03 8:33
Mike Nordell12-Jun-03 8:33 
GeneralProblems with ADO Connection to ORacle using VC Pin
RK_200011-Jun-03 5:44
RK_200011-Jun-03 5:44 
QuestionWho Can give me a rtf file format analyse example? Pin
zhangyifei11-Jun-03 5:41
zhangyifei11-Jun-03 5:41 
AnswerRe: Who Can give me a rtf file format analyse example? Pin
Dominik Reichl11-Jun-03 6:03
Dominik Reichl11-Jun-03 6:03 
AnswerRe: Who Can give me a rtf file format analyse example? Pin
Dominik Reichl11-Jun-03 6:06
Dominik Reichl11-Jun-03 6:06 
AnswerRe: Who Can give me a rtf file format analyse example? Pin
Mike Nordell12-Jun-03 8:36
Mike Nordell12-Jun-03 8:36 
GeneralRe: Who Can give me a rtf file format analyse example? Pin
zhangyifei15-Jun-03 7:27
zhangyifei15-Jun-03 7:27 
GeneralFastest code Pin
doctorpi11-Jun-03 5:39
doctorpi11-Jun-03 5:39 

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.