Click here to Skip to main content
15,887,596 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
You can inline virtual functions just like any others: either by using the 'inline' keyword, or just by writing the function definition right into the declaration. Sometimes this makes sense (such as for destructors), sometimes it doesn't. It mostly depends on whether or not a compiler is able to decide what class a particular object pointer actually points to. Somtimes this can only be detemined at runtime and in that case, obviously, no inlining will occur.

More information and examples can be found on the web, e. g. here: http://msdn.microsoft.com/en-us/magazine/cc301407.aspx[^] or here: http://drdobbs.com/cpp/184403747[^]

In short - if the type of an object pointer can only be determined at runtime, then inlining is not possible, even if the base class and all derived classes do have inlined implementations of that function. If you really, absolutely, desperately need a function to be inlined, either make sure that a particular version is being called (if that is even possible), or simply don't use inheritance for that. That said, since inlining is really only the very last step in performance optimization, it's usally not a real issue: if you can't inline, then you just don't.
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 
AnswerRe: detect memory leak Pin
Alan Balkany25-Aug-11 5:07
Alan Balkany25-Aug-11 5:07 
AnswerRe: detect memory leak Pin
Pravin Patil, Mumbai25-Aug-11 20:37
Pravin Patil, Mumbai25-Aug-11 20:37 
AnswerRe: detect memory leak Pin
Cheongwadae26-Aug-11 16:55
Cheongwadae26-Aug-11 16:55 
QuestionHow to increate network transfer speed? Pin
yu-jian24-Aug-11 21:33
yu-jian24-Aug-11 21:33 
AnswerRe: How to increate network transfer speed? Pin
enhzflep24-Aug-11 21:45
enhzflep24-Aug-11 21:45 
AnswerRe: How to increate network transfer speed? Pin
xrg_soft@163.com24-Aug-11 21:55
xrg_soft@163.com24-Aug-11 21:55 
AnswerRe: How to increate network transfer speed? Pin
Charles Oppermann26-Aug-11 10:40
Charles Oppermann26-Aug-11 10:40 
QuestionCFormView control sizing Pin
Manmohan2924-Aug-11 21:33
Manmohan2924-Aug-11 21:33 
AnswerRe: CFormView control sizing [modified] Pin
xrg_soft@163.com24-Aug-11 21:52
xrg_soft@163.com24-Aug-11 21:52 

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.