Click here to Skip to main content
15,921,643 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Help getting templates converted from a VC6 to VS.NET 2003 Pin
Anonymous24-Nov-03 16:17
Anonymous24-Nov-03 16:17 
GeneralRe: Help getting templates converted from a VC6 to VS.NET 2003 Pin
Anonymous24-Nov-03 16:21
Anonymous24-Nov-03 16:21 
GeneralRe: Help getting templates converted from a VC6 to VS.NET 2003 Pin
Christian Graus24-Nov-03 16:44
protectorChristian Graus24-Nov-03 16:44 
GeneralRe: Help getting templates converted from a VC6 to VS.NET 2003 Pin
Anonymous24-Nov-03 17:11
Anonymous24-Nov-03 17:11 
GeneralRe: Help getting templates converted from a VC6 to VS.NET 2003 Pin
Christian Graus24-Nov-03 16:42
protectorChristian Graus24-Nov-03 16:42 
GeneralRe: Help getting templates converted from a VC6 to VS.NET 2003 Pin
Anonymous24-Nov-03 17:13
Anonymous24-Nov-03 17:13 
GeneralRe: Help getting templates converted from a VC6 to VS.NET 2003 Pin
John M. Drescher24-Nov-03 17:40
John M. Drescher24-Nov-03 17:40 
QuestionCDC::GetCharWidth ? Pin
Abin24-Nov-03 14:53
Abin24-Nov-03 14:53 
BOOL CDC::GetCharWidth( UINT nFirstChar, UINT nLastChar, LPINT lpBuffer ) const;

I found this function a little hard to understand, as stated by MSDN, this function takes 2 UINT's as the 1st and 2nd chars in a consecutive group of characters, the 3rd parameter is an array of int's which is retrieving char widths. This leads to my confusion, in practical, we often want to determine the width of a particular char or string, not something like 'A' to 'Z' or 'a' to 'z'. For example, if I want to know width of string "Hello Code project!" then what should I do? This string has length of 19, do I need to call GetCharWidth 19 times each time pass in something like "'H' to 'H'", "'e' to 'e'", "'l' to 'l'" and so forth?

I mean, why wasn't this function like this: int CDC::GetChatWidth(TCHAR ch) const or int CDC::GetCharWidth(LPCTSTR lpString) const, simply take a char or string and return its width? Sorry if this sounds like a stupid question, but I'm really confused.
AnswerRe: CDC::GetCharWidth ? Pin
Christian Graus24-Nov-03 15:34
protectorChristian Graus24-Nov-03 15:34 
AnswerRe: CDC::GetCharWidth ? Pin
John R. Shaw24-Nov-03 16:49
John R. Shaw24-Nov-03 16:49 
GeneralGreat Pin
Abin24-Nov-03 18:48
Abin24-Nov-03 18:48 
GeneralPrevent from closing Pin
Daniel132424-Nov-03 13:09
Daniel132424-Nov-03 13:09 
GeneralRe: Prevent from closing Pin
Christian Graus24-Nov-03 13:22
protectorChristian Graus24-Nov-03 13:22 
GeneralRe: Prevent from closing Pin
Daniel132424-Nov-03 13:24
Daniel132424-Nov-03 13:24 
GeneralRe: Prevent from closing Pin
Christian Graus24-Nov-03 13:27
protectorChristian Graus24-Nov-03 13:27 
GeneralEmbedded/C question Pin
Sirrius24-Nov-03 12:27
Sirrius24-Nov-03 12:27 
GeneralRe: Embedded/C question Pin
Christian Graus24-Nov-03 13:23
protectorChristian Graus24-Nov-03 13:23 
GeneralRe: Embedded/C question Pin
John R. Shaw24-Nov-03 17:01
John R. Shaw24-Nov-03 17:01 
GeneralRe: Embedded/C question Pin
l a u r e n24-Nov-03 13:42
l a u r e n24-Nov-03 13:42 
QuestionWinsock Layered Service provider on Win98??? Pin
Kuniva24-Nov-03 11:48
Kuniva24-Nov-03 11:48 
Generaldragable widgets Pin
john john mackey24-Nov-03 11:23
john john mackey24-Nov-03 11:23 
GeneralRe: dragable widgets Pin
john john mackey24-Nov-03 11:25
john john mackey24-Nov-03 11:25 
Generalhideing min,max and close button in mdi Pin
rsimcic24-Nov-03 11:11
rsimcic24-Nov-03 11:11 
GeneralRe: hideing min,max and close button in mdi Pin
BaldwinMartin24-Nov-03 14:55
BaldwinMartin24-Nov-03 14:55 
GeneralOverLoading Constructor Pin
NewYork24-Nov-03 10:49
NewYork24-Nov-03 10:49 

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.