Click here to Skip to main content
15,918,967 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: hex converting Pin
Ken Mazaika20-Aug-03 5:55
Ken Mazaika20-Aug-03 5:55 
GeneralRe: hex converting Pin
Dangleberry20-Aug-03 3:18
sussDangleberry20-Aug-03 3:18 
GeneralRe: hex converting Pin
Dangleberry20-Aug-03 3:26
sussDangleberry20-Aug-03 3:26 
GeneralRe: hex converting Pin
NewHSKid20-Aug-03 3:27
NewHSKid20-Aug-03 3:27 
GeneralRe: hex converting Pin
David Crow20-Aug-03 3:35
David Crow20-Aug-03 3:35 
GeneralRe: hex converting Pin
NewHSKid20-Aug-03 3:38
NewHSKid20-Aug-03 3:38 
GeneralRe: hex converting Pin
David Crow20-Aug-03 3:41
David Crow20-Aug-03 3:41 
GeneralRe: hex converting Pin
Terry O'Nolley20-Aug-03 16:31
Terry O'Nolley20-Aug-03 16:31 
The only actual "numbers" in the computer are semi-conductor gates that are either on or off.

That is fine for the computer, but most people need something visual to help us understand what is going on.

To the computer, all numbering base sytems look the same - binary. It is only when outputting the graphical representation of those numbers that you need to worry about data types and base.

So, the number 255 is represented in the coputer by 8 logic gates being on: 11111111
If you, the human, wants to see that number in hexadecimal, then you tell your program to format that number in base 16 and you see "FF". Now, the characters "FF" are represented by the ascii code for the letter 'F' - which is 70 or x40 - so if you looked at the raw bits for the characters "FF" you would see 70 70 or the bits 01000110, 01000110. So what happened??? You started with 11111111 and ended up with 01000110, 01000110!

The confusion comes from figuring out what format the reciever of the data is expecting. That is what function headers are for. They define how to interperet the bits that are being sent.








GeneralWeb Browser Control Pin
Steve Thresher20-Aug-03 2:14
Steve Thresher20-Aug-03 2:14 
GeneralBrowser communication through JNI Pin
nikhilkhedkar20-Aug-03 2:13
nikhilkhedkar20-Aug-03 2:13 
Generalmediaplayer server Pin
andreimihail@yahoo.com20-Aug-03 2:08
andreimihail@yahoo.com20-Aug-03 2:08 
Generalsharing data hell Pin
Dangleberry20-Aug-03 2:00
sussDangleberry20-Aug-03 2:00 
GeneralRe: sharing data hell Pin
Andrew Walker20-Aug-03 2:09
Andrew Walker20-Aug-03 2:09 
GeneralRe: sharing data hell Pin
Dangleberry20-Aug-03 2:24
sussDangleberry20-Aug-03 2:24 
GeneralRe: sharing data hell Pin
Andrew Walker20-Aug-03 3:15
Andrew Walker20-Aug-03 3:15 
GeneralRe: sharing data hell Pin
Blake Miller20-Aug-03 4:54
Blake Miller20-Aug-03 4:54 
GeneralRe: sharing data hell Pin
Dangleberry20-Aug-03 5:33
sussDangleberry20-Aug-03 5:33 
GeneralRe: sharing data hell Pin
Dangleberry20-Aug-03 5:34
sussDangleberry20-Aug-03 5:34 
GeneralRe: sharing data hell Pin
Dangleberry20-Aug-03 5:18
sussDangleberry20-Aug-03 5:18 
Generalxp thems support Pin
Roger Alsing20-Aug-03 1:46
Roger Alsing20-Aug-03 1:46 
GeneralRe: xp thems support Pin
Paul Vickery16-Jul-04 1:19
professionalPaul Vickery16-Jul-04 1:19 
Questionno search thread atrribution on the forum? Pin
includeh1020-Aug-03 1:38
includeh1020-Aug-03 1:38 
AnswerRe: no search thread atrribution on the forum? Pin
Steve S20-Aug-03 5:47
Steve S20-Aug-03 5:47 
GeneralI want to display bitmap very fast ... Pin
MCING20-Aug-03 1:16
MCING20-Aug-03 1:16 
GeneralRe: I want to display bitmap very fast ... Pin
includeh1020-Aug-03 1:41
includeh1020-Aug-03 1:41 

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.