Click here to Skip to main content
16,005,222 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: HELP. . DLLs????? Pin
Mike Melnikov24-May-01 20:30
Mike Melnikov24-May-01 20:30 
QuestionHow to convert 4bit BMP to DOS 4 planes image Pin
24-May-01 15:47
suss24-May-01 15:47 
GeneralC++ Database vs VB database Pin
Robbie Grundel24-May-01 15:43
Robbie Grundel24-May-01 15:43 
GeneralRe: C++ Database vs VB database Pin
Tomasz Sowinski25-May-01 0:17
Tomasz Sowinski25-May-01 0:17 
QuestionHow do I enable (de)compression in my program? Pin
CMFC6.0VS.NETUser24-May-01 13:37
CMFC6.0VS.NETUser24-May-01 13:37 
AnswerRe: How do I enable (de)compression in my program? Pin
Christian Graus24-May-01 14:45
protectorChristian Graus24-May-01 14:45 
GeneralBig Edian to Litte Edian Numbers Pin
User 1278224-May-01 12:04
User 1278224-May-01 12:04 
GeneralRe: Big Edian to Litte Edian Numbers Pin
Michael Dunn24-May-01 16:46
sitebuilderMichael Dunn24-May-01 16:46 
The difference is the order in which the bytes are stored. Big endian is MSB (the "big end") first, and little endian is LSB (the "little end") first. So just use the C bitwise operators to reverse the bytes.

WORD w = 0x13A5;
WORD wReversed = ((w & 0xFF) << 8) | ((w & 0xFF00) >> 8);

--Mike--
http://home.inreach.com/mdunn/
#include "buffy_sig"
GeneralOpenPrnter Failed Pin
24-May-01 11:29
suss24-May-01 11:29 
GeneralRe: OpenPrnter Failed Pin
Carlos Antollini24-May-01 12:34
Carlos Antollini24-May-01 12:34 
GeneralRe: OpenPrnter Failed Pin
Christian Graus24-May-01 13:04
protectorChristian Graus24-May-01 13:04 
GeneralAction On Windows Shutdown Pin
24-May-01 9:52
suss24-May-01 9:52 
GeneralRe: Action On Windows Shutdown Pin
Chris Meech24-May-01 10:25
Chris Meech24-May-01 10:25 
GeneralRe: Action On Windows Shutdown Pin
Michael Dunn24-May-01 10:25
sitebuilderMichael Dunn24-May-01 10:25 
GeneralColor of Item in CListCtrl Pin
24-May-01 9:04
suss24-May-01 9:04 
GeneralRe: Color of Item in CListCtrl Pin
Tomasz Sowinski24-May-01 9:10
Tomasz Sowinski24-May-01 9:10 
GeneralRe: Thanks, but... Pin
24-May-01 9:35
suss24-May-01 9:35 
GeneralRe: Thanks, but... Pin
Tomasz Sowinski24-May-01 9:41
Tomasz Sowinski24-May-01 9:41 
GeneralRe: Color of Item in CListCtrl Pin
Michael Dunn24-May-01 10:27
sitebuilderMichael Dunn24-May-01 10:27 
Generallength between two points Pin
mr200324-May-01 9:01
mr200324-May-01 9:01 
GeneralRe: length between two points Pin
Christian Graus24-May-01 13:08
protectorChristian Graus24-May-01 13:08 
Generallength between two points Pin
mr200324-May-01 9:00
mr200324-May-01 9:00 
GeneralRe: length between two points Pin
Tomasz Sowinski24-May-01 9:04
Tomasz Sowinski24-May-01 9:04 
GeneralCRC-Checksum to check whether file has been modified Pin
24-May-01 8:55
suss24-May-01 8:55 
QuestionWhy my program cannot show colour? Pin
Richard Cheng24-May-01 7:24
Richard Cheng24-May-01 7:24 

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.