Click here to Skip to main content
15,912,504 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: access c: drive Pin
ThatsAlok25-Oct-07 5:22
ThatsAlok25-Oct-07 5:22 
GeneralRe: access c: drive Pin
jhwurmbach25-Oct-07 5:25
jhwurmbach25-Oct-07 5:25 
GeneralRe: access c: drive Pin
ThatsAlok25-Oct-07 5:38
ThatsAlok25-Oct-07 5:38 
GeneralRe: access c: drive Pin
jhwurmbach25-Oct-07 5:57
jhwurmbach25-Oct-07 5:57 
GeneralRe: access c: drive Pin
Roger Broomfield25-Oct-07 6:25
Roger Broomfield25-Oct-07 6:25 
GeneralRe: access c: drive Pin
jhwurmbach25-Oct-07 6:31
jhwurmbach25-Oct-07 6:31 
GeneralRe: access c: drive Pin
Roger Broomfield25-Oct-07 7:01
Roger Broomfield25-Oct-07 7:01 
QuestionWindows Redraw Issues Pin
neil478124-Oct-07 22:42
neil478124-Oct-07 22:42 
AnswerRe: Windows Redraw Issues Pin
Nishad S25-Oct-07 0:44
Nishad S25-Oct-07 0:44 
GeneralRe: Windows Redraw Issues Pin
neil478125-Oct-07 8:45
neil478125-Oct-07 8:45 
GeneralRe: Windows Redraw Issues Pin
Nishad S25-Oct-07 17:13
Nishad S25-Oct-07 17:13 
QuestionWho can explain this code for me?about virtual function Pin
kuibing24-Oct-07 21:41
kuibing24-Oct-07 21:41 
AnswerRe: Who can explain this code for me?about virtual function Pin
mid=574124-Oct-07 22:02
mid=574124-Oct-07 22:02 
QuestionSet Excel cell's background color & comment programmatically Pin
LiYS24-Oct-07 21:38
LiYS24-Oct-07 21:38 
AnswerRe: Set Excel cell's background color & comment programmatically Pin
Roger Broomfield24-Oct-07 22:03
Roger Broomfield24-Oct-07 22:03 
GeneralRe: Set Excel cell's background color & comment programmatically Pin
LiYS24-Oct-07 22:32
LiYS24-Oct-07 22:32 
GeneralRe: Set Excel cell's background color & comment programmatically Pin
Roger Broomfield25-Oct-07 6:44
Roger Broomfield25-Oct-07 6:44 
Questionvirtual function Pin
richardye24-Oct-07 21:27
richardye24-Oct-07 21:27 
AnswerRe: virtual function [modified] Pin
Mattias G25-Oct-07 3:35
Mattias G25-Oct-07 3:35 
I think what the author meant was that the compiler does not generate a vtable entry that is never needed. If you declare a function as virtual in a base class, and that function is always called in the scope of a known class, the compiler might as well skip the vtable entry for that function. Or if you declare a virtual fuction in a class with no sub- or superclasses, there's no point in using a vtable at all.

As for the inline declaration of a function, it only tells the compiler that you would prefer to have the code generated inline. If the function is virtual, you will still get a pointer in the vtable to that function (unless optimized away by the compiler).

Might add that I'm not an expert on the inner logic of an actual compiler, so the case may be a bit more complicated than this Smile | :)


-- modified at 12:33 Thursday 25th October, 2007
QuestionNumbe of Sheets of an excel file Pin
prithaa24-Oct-07 21:09
prithaa24-Oct-07 21:09 
AnswerRe: Numbe of Sheets of an excel file Pin
Roger Broomfield24-Oct-07 21:29
Roger Broomfield24-Oct-07 21:29 
GeneralRe: Numbe of Sheets of an excel file Pin
prithaa25-Oct-07 0:59
prithaa25-Oct-07 0:59 
GeneralRe: Numbe of Sheets of an excel file Pin
Roger Broomfield25-Oct-07 6:53
Roger Broomfield25-Oct-07 6:53 
QuestionConnectionstring out of app.config [modified] Pin
cad-JC24-Oct-07 20:57
cad-JC24-Oct-07 20:57 
QuestionHow to draw over-line using GDI+? Pin
codelee24-Oct-07 20:26
codelee24-Oct-07 20:26 

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.