Click here to Skip to main content
15,913,939 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Help with .EXE file Pin
kochhar11-Jun-03 12:40
kochhar11-Jun-03 12:40 
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 
template <class T> T ReverseBYTES (T &t)
{
    // reverses the bytes in 't'
    int bytes = sizeof(T);
    T rev;
    BYTE *ptr1 = (BYTE *)&t;
    BYTE *ptr2 = (BYTE *)&rev;
    for (int x = 0; x < bytes; x++)
        ptr2[x] = ptr1[bytes - x - 1];
    return rev;
}


Works with data of any size.







Sonork 100.11743 Chicken Little

"You're obviously a superstar." - Christian Graus about me - 12 Feb '03

Within you lies the power for good - Use it!
GeneralRe: Byte-swapping... Pin
Nitron12-Jun-03 3:44
Nitron12-Jun-03 3:44 
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 

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.