Click here to Skip to main content
15,900,724 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Structure/Class member addresses Pin
Avi Berger5-Mar-10 5:11
Avi Berger5-Mar-10 5:11 
QuestionData Type Conversions Pin
Andy2025-Mar-10 2:06
Andy2025-Mar-10 2:06 
QuestionRe: Data Type Conversions Pin
CPallini5-Mar-10 3:28
mveCPallini5-Mar-10 3:28 
AnswerI'm not following the math you're doing, but maybe this will help.. Pin
Mike the Red5-Mar-10 3:33
Mike the Red5-Mar-10 3:33 
GeneralRe: I'm not following the math you're doing, but maybe this will help.. Pin
Andy2025-Mar-10 8:12
Andy2025-Mar-10 8:12 
AnswerRe: Data Type Conversions Pin
Luc Pattyn5-Mar-10 4:19
sitebuilderLuc Pattyn5-Mar-10 4:19 
GeneralRe: Data Type Conversions Pin
Andy2025-Mar-10 10:48
Andy2025-Mar-10 10:48 
AnswerRe: Data Type Conversions Pin
Luc Pattyn5-Mar-10 11:38
sitebuilderLuc Pattyn5-Mar-10 11:38 
I see you ignored all I asked and said.

If I understood what you meant correctly, then:

the LSB value is 360/0x10000 (approx 0.00549)

assuming a monotonous binary representation (as opposed to e.g. sign+mantissa), we get:
0x7FFF = almost 180
0x0000 = 0
0x8000 = -180


3.45 --> 3.45*0x10000/360 = 628 = 0x0274
-3.45 --> -3.45*0x10000/360 = -628 = 0xFD8C

Hmmm | :|
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]

I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that.

GeneralRe: Data Type Conversions Pin
Andy2025-Mar-10 22:33
Andy2025-Mar-10 22:33 
QuestionHow to receive a file name under the link? Pin
Dima Filipiuk5-Mar-10 0:58
Dima Filipiuk5-Mar-10 0:58 
AnswerRe: How to receive a file name under the link? Pin
David Crow5-Mar-10 7:07
David Crow5-Mar-10 7:07 
QuestionOLE image drag and drop between Tree controls Pin
RakeshManohar5-Mar-10 0:51
RakeshManohar5-Mar-10 0:51 
AnswerRe: OLE image drag and drop between Tree controls Pin
Eugen Podsypalnikov5-Mar-10 1:12
Eugen Podsypalnikov5-Mar-10 1:12 
GeneralRe: OLE image drag and drop between Tree controls Pin
RakeshManohar5-Mar-10 1:18
RakeshManohar5-Mar-10 1:18 
GeneralRe: OLE image drag and drop between Tree controls Pin
Eugen Podsypalnikov5-Mar-10 1:29
Eugen Podsypalnikov5-Mar-10 1:29 
GeneralRe: OLE image drag and drop between Tree controls Pin
RakeshManohar5-Mar-10 2:17
RakeshManohar5-Mar-10 2:17 
QuestionCreateProcess failed Pin
john56325-Mar-10 0:39
john56325-Mar-10 0:39 
AnswerRe: CreateProcess failed Pin
Adam Roderick J5-Mar-10 0:50
Adam Roderick J5-Mar-10 0:50 
GeneralRe: CreateProcess failed Pin
john56325-Mar-10 1:19
john56325-Mar-10 1:19 
GeneralRe: CreateProcess failed Pin
Adam Roderick J5-Mar-10 1:28
Adam Roderick J5-Mar-10 1:28 
GeneralRe: CreateProcess failed Pin
CPallini5-Mar-10 1:55
mveCPallini5-Mar-10 1:55 
GeneralRe: CreateProcess failed Pin
ycc8920095-Mar-10 3:43
ycc8920095-Mar-10 3:43 
GeneralRe: CreateProcess failed Pin
CPallini5-Mar-10 5:23
mveCPallini5-Mar-10 5:23 
AnswerRe: CreateProcess failed Pin
Joe Woodbury5-Mar-10 11:25
professionalJoe Woodbury5-Mar-10 11:25 
QuestionGdiplus::Graphics::DrawString and word wrap Pin
sashoalm4-Mar-10 23:36
sashoalm4-Mar-10 23: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.