Click here to Skip to main content
15,908,841 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problem with loading DLL on a computer that doesn't have VC++ installed... Pin
The_Server1-Jan-02 2:47
The_Server1-Jan-02 2:47 
GeneralRe: Problem with loading DLL on a computer that doesn't have VC++ installed... Pin
Rickard Andersson201-Jan-02 4:53
Rickard Andersson201-Jan-02 4:53 
Generalwin32 API with c# Pin
kasturirawat31-Dec-01 13:55
kasturirawat31-Dec-01 13:55 
GeneralAuto URL detect Pin
Nnamdi Onyeyiri31-Dec-01 7:40
Nnamdi Onyeyiri31-Dec-01 7:40 
GeneralCompiling DLL in Release Mode Pin
Nnamdi Onyeyiri31-Dec-01 7:37
Nnamdi Onyeyiri31-Dec-01 7:37 
GeneralStatic Binding & Dynamic Binding :: C++ Pin
valikac31-Dec-01 7:15
valikac31-Dec-01 7:15 
GeneralRe: Static Binding & Dynamic Binding :: C++ Pin
Christian Graus31-Dec-01 10:42
protectorChristian Graus31-Dec-01 10:42 
GeneralRe: Static Binding & Dynamic Binding :: C++ Pin
valikac31-Dec-01 11:56
valikac31-Dec-01 11:56 
My original concern was not with the use of virtual function. I basically feared resource loss and performance reduction because using virtual function requires declaration of multiple classes, including one base and at least one derived. null_pointer made a good point at GameDev forums that a pointer takes up very little resource. I believe he implied that even thought virtual requires declaration of multiple class objects, doing so through pointer takes up few resources.

I see the big picture is sometimes "virtual" is a necessity. It is not an option in some cases where the program has no way of knowing which function you are implying.

So the question came down to the performance of static binding and dynamic binding. If there is no performance difference, then I think it is better to just use dynamic binding with inheritance.

Kuphryn

GeneralRe: Static Binding & Dynamic Binding :: C++ Pin
2-Jan-02 7:56
suss2-Jan-02 7:56 
GeneralRe: Static Binding & Dynamic Binding :: C++ Pin
valikac2-Jan-02 14:22
valikac2-Jan-02 14:22 
GeneralGraph Pin
Sonu Kapoor31-Dec-01 5:09
Sonu Kapoor31-Dec-01 5:09 
GeneralRe: Graph Pin
Ravi Bhavnani31-Dec-01 5:13
professionalRavi Bhavnani31-Dec-01 5:13 
GeneralCHtmlView Pin
31-Dec-01 4:36
suss31-Dec-01 4:36 
GeneralRe: CHtmlView Pin
Philip Patrick1-Jan-02 2:49
professionalPhilip Patrick1-Jan-02 2:49 
Generalcall a function from more then 1 project Pin
Aviv Halperin31-Dec-01 4:23
Aviv Halperin31-Dec-01 4:23 
GeneralRe: call a function from more then 1 project Pin
Chris Losinger31-Dec-01 4:32
professionalChris Losinger31-Dec-01 4:32 
GeneralLoading function from an exe... Pin
Rickard Andersson2031-Dec-01 3:08
Rickard Andersson2031-Dec-01 3:08 
GeneralRe: Loading function from an exe... Pin
BlackSmith31-Dec-01 5:33
BlackSmith31-Dec-01 5:33 
GeneralMFC Extention DLL - Exporting classes..... Pin
BlackSmith31-Dec-01 2:49
BlackSmith31-Dec-01 2:49 
GeneralRe: MFC Extention DLL - Exporting classes..... Pin
Nnamdi Onyeyiri31-Dec-01 7:18
Nnamdi Onyeyiri31-Dec-01 7:18 
Questionmenu from resource redrawing? Pin
Kuniva31-Dec-01 2:40
Kuniva31-Dec-01 2:40 
AnswerRe: menu from resource redrawing? Pin
567890123431-Dec-01 4:37
567890123431-Dec-01 4:37 
AnswerRe: menu from resource redrawing? Pin
Michael Dunn31-Dec-01 7:09
sitebuilderMichael Dunn31-Dec-01 7:09 
GeneralHow do i add the handler? Pin
Kuniva1-Jan-02 3:37
Kuniva1-Jan-02 3:37 
GeneralTextWidth and GDI+ (Anders is learning GDI+ part 3) Pin
Anders Molin31-Dec-01 1:51
professionalAnders Molin31-Dec-01 1:51 

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.