Click here to Skip to main content
16,013,489 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Catch data stream going to graphics card Pin
John M. Drescher26-Aug-03 7:39
John M. Drescher26-Aug-03 7:39 
Generalfloat to hex Pin
Jay Hova26-Aug-03 7:12
Jay Hova26-Aug-03 7:12 
GeneralRe: float to hex Pin
David Crow26-Aug-03 7:29
David Crow26-Aug-03 7:29 
GeneralRe: float to hex Pin
Jay Hova26-Aug-03 7:49
Jay Hova26-Aug-03 7:49 
GeneralRe: float to hex Pin
David Crow26-Aug-03 8:02
David Crow26-Aug-03 8:02 
GeneralRe: float to hex Pin
Roger Wright26-Aug-03 8:09
professionalRoger Wright26-Aug-03 8:09 
GeneralRe: float to hex Pin
David Crow26-Aug-03 8:21
David Crow26-Aug-03 8:21 
GeneralRe: float to hex Pin
Roger Wright26-Aug-03 8:07
professionalRoger Wright26-Aug-03 8:07 
I'm not sure what they're trying to say - "Hex format"? It could many several things.

The IEEE format for representing a floating point number is

S EEEEEEEE FFFFFFFFFFFFFFFFFFFFFFF
0 1 8 9 31

where S = the sign bit, EEEEEEEE = the exponent, and FFF...F = the fractional mantissa. In this format each bit has meaning, and on the receiving end the consumer has to expect and recognize this format. When you send it in hex, you're just sending bits in groups of 4, or

SEEE EEEE EFFF FFFF FFFF FFFF FFFF FFFF
Hex0 Hex1 Hex2 Hex3 Hex4 Hex5 Hex6 Hex7

It's up to the receiver to combine the 8 hex characters' bit pattern into a single 32-bit value and correctly interpret it as a floating point value.

On the other hand, if your application requires you to send text data only, using the ascii characters that represent the hex characters that are equivalent to your floating point value, you have a real challenge. First you'll have to convert the float into a collection of 4-bit chunks, then determine the hex character for each chunk, then convert each hex character to text. I wouldn't know how to begin that, I'm afraid, though almost everyone here is smarter than I about such things and may be able to guide you.

Hopefully you're dealing with the first case...

"Welcome to Arizona!
Drive Nice - We're Armed..."
- Proposed Sign at CA/AZ Border

QuestionHow to use the IP Control Pin
Snyp26-Aug-03 7:07
Snyp26-Aug-03 7:07 
AnswerRe: How to use the IP Control Pin
David Crow26-Aug-03 7:10
David Crow26-Aug-03 7:10 
GeneralRe: How to use the IP Control Pin
Snyp26-Aug-03 7:12
Snyp26-Aug-03 7:12 
GeneralRe: How to use the IP Control Pin
David Crow26-Aug-03 7:32
David Crow26-Aug-03 7:32 
AnswerRe: How to use the IP Control Pin
Babayan Hovhannes27-Aug-03 0:21
Babayan Hovhannes27-Aug-03 0:21 
GeneralBroadcast a msg in MFC Pin
Todd Smith26-Aug-03 6:53
Todd Smith26-Aug-03 6:53 
GeneralRe: Broadcast a msg in MFC Pin
David Crow26-Aug-03 7:05
David Crow26-Aug-03 7:05 
GeneralRe: Broadcast a msg in MFC Pin
Todd Smith26-Aug-03 7:06
Todd Smith26-Aug-03 7:06 
GeneralRe: Broadcast a msg in MFC Pin
John M. Drescher26-Aug-03 7:33
John M. Drescher26-Aug-03 7:33 
GeneralRe: Broadcast a msg in MFC Pin
David Crow26-Aug-03 7:42
David Crow26-Aug-03 7:42 
GeneralRe: Broadcast a msg in MFC Pin
John M. Drescher26-Aug-03 7:44
John M. Drescher26-Aug-03 7:44 
GeneralRe: Broadcast a msg in MFC Pin
Todd Smith26-Aug-03 11:14
Todd Smith26-Aug-03 11:14 
GeneralMerge source code for the same project Pin
sdfdsfa26-Aug-03 6:29
sdfdsfa26-Aug-03 6:29 
GeneralRe: Merge source code for the same project Pin
David Crow26-Aug-03 7:07
David Crow26-Aug-03 7:07 
QuestionHow to delete a saved bitmap Pin
mr200326-Aug-03 5:30
mr200326-Aug-03 5:30 
AnswerRe: How to delete a saved bitmap Pin
David Crow26-Aug-03 7:08
David Crow26-Aug-03 7:08 
AnswerRe: How to delete a saved bitmap Pin
John M. Drescher26-Aug-03 7:36
John M. Drescher26-Aug-03 7:36 

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.