Click here to Skip to main content
15,911,035 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Need an Algorithm Pin
Tim Smith3-Jun-05 3:43
Tim Smith3-Jun-05 3:43 
GeneralRe: Need an Algorithm Pin
toxcct3-Jun-05 0:33
toxcct3-Jun-05 0:33 
GeneralRe: Need an Algorithm Pin
Blake Miller3-Jun-05 4:03
Blake Miller3-Jun-05 4:03 
GeneralRe: Need an Algorithm Pin
toxcct3-Jun-05 4:05
toxcct3-Jun-05 4:05 
GeneralRe: Need an Algorithm Pin
Alton Williams3-Jun-05 4:09
Alton Williams3-Jun-05 4:09 
GeneralRe: Need an Algorithm Pin
Blake Miller3-Jun-05 4:02
Blake Miller3-Jun-05 4:02 
GeneralUsing SetUnhadledExceptionFilter in COM component Pin
Poul Haahr Klemmensen2-Jun-05 23:46
Poul Haahr Klemmensen2-Jun-05 23:46 
GeneralHexadecimal to Binary Pin
mcsherry2-Jun-05 23:20
mcsherry2-Jun-05 23:20 
I'm currently reading in a binary file which contains hexadecimal data, however I then need to convert this data from hexadecimal into binary (as well as swap the ordering from least significant bit to most significant bit, i.e. if I get (in hex) C9 6F in I need to swap these to 6F C9 and then convert it into binary, i.e. 0110 1111 1100 1001).

Does anyone know if there is a system call for doing this (or a standard algorithm). I've looks at htons (and other methods) but they rely on the data type being 'short' whereas the data read in from the file is stored as a 'char' in an array.

TIA,
Andy
GeneralRe: Hexadecimal to Binary Pin
RichardS2-Jun-05 23:56
RichardS2-Jun-05 23:56 
GeneralRe: Hexadecimal to Binary Pin
mcsherry3-Jun-05 3:41
mcsherry3-Jun-05 3:41 
GeneralRe: Hexadecimal to Binary Pin
Blake Miller3-Jun-05 4:15
Blake Miller3-Jun-05 4:15 
GeneralSeeking in Large Files Pin
RichardS2-Jun-05 23:00
RichardS2-Jun-05 23:00 
GeneralRe: Seeking in Large Files Pin
Koms Bomb2-Jun-05 23:06
Koms Bomb2-Jun-05 23:06 
GeneralRe: Seeking in Large Files Pin
RichardS2-Jun-05 23:24
RichardS2-Jun-05 23:24 
GeneralRe: Seeking in Large Files Pin
Koms Bomb2-Jun-05 23:36
Koms Bomb2-Jun-05 23:36 
GeneralRe: Seeking in Large Files Pin
RichardS3-Jun-05 3:33
RichardS3-Jun-05 3:33 
GeneralRe: Seeking in Large Files Pin
David Crow3-Jun-05 3:40
David Crow3-Jun-05 3:40 
GeneralRe: Seeking in Large Files Pin
RichardS3-Jun-05 3:54
RichardS3-Jun-05 3:54 
GeneralRe: Seeking in Large Files Pin
Koms Bomb3-Jun-05 4:07
Koms Bomb3-Jun-05 4:07 
GeneralRe: Seeking in Large Files Pin
David Crow3-Jun-05 2:39
David Crow3-Jun-05 2:39 
GeneralRe: Seeking in Large Files Pin
RichardS3-Jun-05 3:36
RichardS3-Jun-05 3:36 
GeneralRe: Seeking in Large Files Pin
Blake Miller3-Jun-05 4:20
Blake Miller3-Jun-05 4:20 
GeneralStreamOut doesn't preserve CFM_LINK settings Pin
P. Gnana Prakash2-Jun-05 22:19
P. Gnana Prakash2-Jun-05 22:19 
QuestionWindows Media Player, GetVolume(), always return -600? Pin
Koms Bomb2-Jun-05 22:09
Koms Bomb2-Jun-05 22:09 
AnswerRe: Windows Media Player, GetVolume(), always return -600? Pin
P-Rex2-Jun-05 22:20
P-Rex2-Jun-05 22:20 

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.