Click here to Skip to main content
15,888,521 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Overloading methods with identical content in lot of derived classes Pin
CPallini7-Jul-16 21:09
mveCPallini7-Jul-16 21:09 
AnswerRe: Overloading methods with identical content in lot of derived classes Pin
FriendOfAsherah7-Jul-16 21:54
FriendOfAsherah7-Jul-16 21:54 
QuestionRe: Overloading methods with identical content in lot of derived classes Pin
CPallini7-Jul-16 22:37
mveCPallini7-Jul-16 22:37 
AnswerRe: Overloading methods with identical content in lot of derived classes Pin
FriendOfAsherah7-Jul-16 22:51
FriendOfAsherah7-Jul-16 22:51 
GeneralRe: Overloading methods with identical content in lot of derived classes Pin
CPallini7-Jul-16 23:37
mveCPallini7-Jul-16 23:37 
GeneralRe: Overloading methods with identical content in lot of derived classes Pin
FriendOfAsherah8-Jul-16 3:45
FriendOfAsherah8-Jul-16 3:45 
GeneralRe: Overloading methods with identical content in lot of derived classes Pin
CPallini8-Jul-16 9:00
mveCPallini8-Jul-16 9:00 
GeneralRe: Overloading methods with identical content in lot of derived classes Pin
FriendOfAsherah10-Jul-16 20:16
FriendOfAsherah10-Jul-16 20:16 
Problem is inheritance to base of Cc1 Cc2 etc
B<-Ca1<-Cb1<-Cc1
B<-Ca2<-Cb3<-Cc2
if I use an intermediate class e.g D and declare D:M1()
then following problem arises:

class B { virtual M1() };
class Ca1 : public B
class Cb1 : public Ca1
class D : { virtual M1() } ;
class Cc1: public Cb1 , public D
class Cc2 : public Cb2 , public D
...

if I call now x->M1() with x is a Cc1*
which method will be used? Does D::M1() overload B::M1(), what I like to have?
GeneralRe: Overloading methods with identical content in lot of derived classes Pin
ellegonzalez18-Aug-16 22:59
ellegonzalez18-Aug-16 22:59 
GeneralRe: Overloading methods with identical content in lot of derived classes Pin
leon de boer8-Jul-16 3:01
leon de boer8-Jul-16 3:01 
GeneralRe: Overloading methods with identical content in lot of derived classes Pin
FriendOfAsherah8-Jul-16 3:47
FriendOfAsherah8-Jul-16 3:47 
GeneralRe: Overloading methods with identical content in lot of derived classes Pin
leon de boer8-Jul-16 18:25
leon de boer8-Jul-16 18:25 
GeneralRe: Overloading methods with identical content in lot of derived classes Pin
FriendOfAsherah10-Jul-16 20:32
FriendOfAsherah10-Jul-16 20:32 
AnswerRe: Overloading methods with identical content in lot of derived classes Pin
FriendOfAsherah13-Jul-16 0:45
FriendOfAsherah13-Jul-16 0:45 
AnswerRe: Overloading methods with identical content in lot of derived classes Pin
Krishnakumartg19-Jul-16 20:14
Krishnakumartg19-Jul-16 20:14 
GeneralRe: Overloading methods with identical content in lot of derived classes Pin
FriendOfAsherah19-Jul-16 23:06
FriendOfAsherah19-Jul-16 23:06 
QuestionCMFCRibbonBar High DPI Pin
Paul Harrison 26-Jul-16 7:12
Paul Harrison 26-Jul-16 7:12 
QuestionInternet Explorer Pin
Member 125311295-Jul-16 2:58
Member 125311295-Jul-16 2:58 
AnswerRe: Internet Explorer Pin
Chris Losinger5-Jul-16 5:12
professionalChris Losinger5-Jul-16 5:12 
GeneralRe: Internet Explorer Pin
Member 125311295-Jul-16 20:16
Member 125311295-Jul-16 20:16 
QuestionSuport for MFC Pin
Bram van Kampen3-Jul-16 14:15
Bram van Kampen3-Jul-16 14:15 
AnswerRe: Suport for MFC Pin
Daniel Pfeffer3-Jul-16 20:50
professionalDaniel Pfeffer3-Jul-16 20:50 
GeneralRe: Suport for MFC Pin
Bram van Kampen4-Jul-16 14:19
Bram van Kampen4-Jul-16 14:19 
AnswerRe: Suport for MFC Pin
Jochen Arndt3-Jul-16 21:12
professionalJochen Arndt3-Jul-16 21:12 
GeneralRe: Suport for MFC Pin
Bram van Kampen4-Jul-16 13:59
Bram van Kampen4-Jul-16 13:59 

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.