Click here to Skip to main content
15,884,237 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: GetCharABCWidthsFloat returns different values on XP, Vista and Windows 7 Pin
transoft26-Aug-11 2:50
transoft26-Aug-11 2:50 
GeneralRe: GetCharABCWidthsFloat returns different values on XP, Vista and Windows 7 Pin
Code-o-mat26-Aug-11 3:03
Code-o-mat26-Aug-11 3:03 
GeneralRe: GetCharABCWidthsFloat returns different values on XP, Vista and Windows 7 Pin
transoft26-Aug-11 4:16
transoft26-Aug-11 4:16 
QuestionRe: GetCharABCWidthsFloat returns different values on XP, Vista and Windows 7 Pin
MicroVirus26-Aug-11 6:00
MicroVirus26-Aug-11 6:00 
AnswerRe: GetCharABCWidthsFloat returns different values on XP, Vista and Windows 7 Pin
transoft26-Aug-11 6:11
transoft26-Aug-11 6:11 
GeneralRe: GetCharABCWidthsFloat returns different values on XP, Vista and Windows 7 Pin
jeron126-Aug-11 7:48
jeron126-Aug-11 7:48 
GeneralRe: GetCharABCWidthsFloat returns different values on XP, Vista and Windows 7 Pin
transoft26-Aug-11 8:00
transoft26-Aug-11 8:00 
AnswerRe: GetCharABCWidthsFloat returns different values on XP, Vista and Windows 7 Pin
Charles Oppermann26-Aug-11 10:35
Charles Oppermann26-Aug-11 10:35 
transoft wrote:
I did not say "I think". I actually tried the function and got the results. I
tried on different machine (XP, VISTA, WIN 7). I used exact same configuration.
But I got different results.


But it's not the same configuration - it's a different platform and there is no way it can be the same video drivers. Windows is constantly changing how text is drawn. ClearType, NTDDI, and changes to the fonts themselves mean that there might be different values.

Are we talking about large differences in the return values?

Maybe as a test, you can write a string, and measure the bounding rectangle and see if it's different on each platform.
/* Charles Oppermann */
http://weblogs.asp.net/chuckop

GeneralRe: GetCharABCWidthsFloat returns different values on XP, Vista and Windows 7 Pin
enhzflep26-Aug-11 15:52
enhzflep26-Aug-11 15:52 
GeneralRe: GetCharABCWidthsFloat returns different values on XP, Vista and Windows 7 Pin
transoft26-Aug-11 16:51
transoft26-Aug-11 16:51 
QuestionUsing MFC to Host a WebBrowser Control Pin
geofftop25-Aug-11 3:10
geofftop25-Aug-11 3:10 
Questionhow compiler differentiates inline virtual function? [modified] Pin
yogish29325-Aug-11 2:57
yogish29325-Aug-11 2:57 
AnswerRe: how compiler differentiates inline virtual function? Pin
CPallini25-Aug-11 3:27
mveCPallini25-Aug-11 3:27 
GeneralRe: how compiler differentiates inline virtual function? Pin
Niklas L25-Aug-11 21:36
Niklas L25-Aug-11 21:36 
GeneralRe: how compiler differentiates inline virtual function? Pin
CPallini25-Aug-11 21:50
mveCPallini25-Aug-11 21:50 
GeneralRe: how compiler differentiates inline virtual function? Pin
Stefan_Lang25-Aug-11 22:31
Stefan_Lang25-Aug-11 22:31 
AnswerRe: how compiler differentiates inline virtual function? Pin
Stefan_Lang25-Aug-11 3:34
Stefan_Lang25-Aug-11 3:34 
QuestionHow to get attachment filename without download attachment file? Pin
R_K25-Aug-11 2:39
R_K25-Aug-11 2:39 
QuestionRe: How to get attachment filename without download attachment file? Pin
MicroVirus25-Aug-11 2:41
MicroVirus25-Aug-11 2:41 
AnswerRe: How to get attachment filename without download attachment file? Pin
R_K25-Aug-11 5:24
R_K25-Aug-11 5:24 
GeneralRe: How to get attachment filename without download attachment file? Pin
enhzflep25-Aug-11 6:43
enhzflep25-Aug-11 6:43 
QuestionProblem in accessing virtual hard as local hard disk Pin
Chattha1125-Aug-11 1:27
Chattha1125-Aug-11 1:27 
AnswerRe: Problem in accessing virtual hard as local hard disk Pin
Code-o-mat25-Aug-11 7:42
Code-o-mat25-Aug-11 7:42 
Questiondetect memory leak Pin
zon_cpp25-Aug-11 0:09
zon_cpp25-Aug-11 0:09 
GeneralRe: detect memory leak Pin
Rage25-Aug-11 0:22
professionalRage25-Aug-11 0:22 

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.