Click here to Skip to main content
15,902,112 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalfind a string in a large sequence. Pin
Maximilien27-Aug-04 4:12
Maximilien27-Aug-04 4:12 
GeneralRe: find a string in a large sequence. Pin
David Crow27-Aug-04 5:40
David Crow27-Aug-04 5:40 
GeneralRe: find a string in a large sequence. Pin
Maximilien27-Aug-04 6:07
Maximilien27-Aug-04 6:07 
GeneralRe: find a string in a large sequence. Pin
Blake Miller27-Aug-04 7:13
Blake Miller27-Aug-04 7:13 
GeneralMultiple Inheritance question Pin
InheritThis!27-Aug-04 3:27
sussInheritThis!27-Aug-04 3:27 
GeneralRe: Multiple Inheritance question Pin
thowra27-Aug-04 3:41
thowra27-Aug-04 3:41 
GeneralRe: Multiple Inheritance question Pin
InheritThis!27-Aug-04 3:54
sussInheritThis!27-Aug-04 3:54 
GeneralRe: Multiple Inheritance question Pin
Marcello27-Aug-04 6:29
Marcello27-Aug-04 6:29 
I am not a C++ guru, but this is how I understand the problem.

You have a diamond pattern:
<br />
       I1<br />
      /  \<br />
    I2    C1<br />
      \  /<br />
       C2<br />
<br />
I1::f=0<br />
I2 f=?   <br />
C1 f={}<br />
C2 ( f = I2::f or C1::f ? )<br />

which you should always try to avoid when you use multiple inheritance.
BTW: many people complain about multiple inheritance, but as long as you avoid a diamond patter, you'll be fine.

So C2 is asking which f() should I make visible ?
Your answer is: the one implemented. But this you know it only at linkage time.

You need to implement f also in I2 and still you'll get an error
because you still didn't answer the question ( f = I2::f or C1::f ? )

So you need to implement
C2::f() { return C1::f(); }
or you need to delete the declaration of f() in I1

Hope it clarifies.
GeneralRe: Multiple Inheritance question Pin
Member 209155829-Aug-04 20:24
Member 209155829-Aug-04 20:24 
Generaltype cast Pin
sinacetiner27-Aug-04 1:28
sinacetiner27-Aug-04 1:28 
Generalloading a program Pin
Daniel Kanev27-Aug-04 1:04
Daniel Kanev27-Aug-04 1:04 
GeneralRe: loading a program Pin
David Salter27-Aug-04 1:10
David Salter27-Aug-04 1:10 
Generalalignment in grid control Pin
nainakhawaja27-Aug-04 0:15
nainakhawaja27-Aug-04 0:15 
GeneralRe: alignment in grid control Pin
David Crow27-Aug-04 9:34
David Crow27-Aug-04 9:34 
GeneralRe: alignment in grid control Pin
nainakhawaja27-Aug-04 19:22
nainakhawaja27-Aug-04 19:22 
GeneralImprove performance of SOAP over HTTP Pin
lamnd26-Aug-04 22:54
lamnd26-Aug-04 22:54 
GeneralCheckMenuItem() problem Pin
Dan Nicolici26-Aug-04 22:40
Dan Nicolici26-Aug-04 22:40 
GeneralRe: CheckMenuItem() problem Pin
Hans Ruck27-Aug-04 0:55
Hans Ruck27-Aug-04 0:55 
GeneralRe: CheckMenuItem() problem Pin
Michael Dunn27-Aug-04 21:06
sitebuilderMichael Dunn27-Aug-04 21:06 
GeneralRe: CheckMenuItem() problem Pin
Dan Nicolici30-Aug-04 1:36
Dan Nicolici30-Aug-04 1:36 
GeneralHelp required Pin
Sreekanth Muralidharan26-Aug-04 22:22
Sreekanth Muralidharan26-Aug-04 22:22 
GeneralRe: Help required Pin
KaЯl27-Aug-04 1:09
KaЯl27-Aug-04 1:09 
GeneralSend a file to my server using MFC Pin
anderslundsgard26-Aug-04 22:19
anderslundsgard26-Aug-04 22:19 
GeneralRe: Send a file to my server using MFC Pin
Rory Solley26-Aug-04 23:12
Rory Solley26-Aug-04 23:12 
GeneralRe: Send a file to my server using MFC Pin
darkbyte27-Aug-04 13:44
darkbyte27-Aug-04 13:44 

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.