Click here to Skip to main content
15,895,084 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhow to debug exe service? Pin
HeartFriend27-Jul-05 17:03
HeartFriend27-Jul-05 17:03 
AnswerRe: how to debug exe service? Pin
Christian Graus27-Jul-05 17:05
protectorChristian Graus27-Jul-05 17:05 
Questionhow to design multiple inheritance classes? Pin
nm_11427-Jul-05 16:39
nm_11427-Jul-05 16:39 
AnswerRe: how to design multiple inheritance classes? Pin
Christian Graus27-Jul-05 16:49
protectorChristian Graus27-Jul-05 16:49 
GeneralRe: how to design multiple inheritance classes? Pin
nm_11427-Jul-05 18:02
nm_11427-Jul-05 18:02 
GeneralRe: how to design multiple inheritance classes? Pin
Christian Graus27-Jul-05 18:08
protectorChristian Graus27-Jul-05 18:08 
GeneralRe: how to design multiple inheritance classes? Pin
nm_11427-Jul-05 18:34
nm_11427-Jul-05 18:34 
GeneralRe: how to design multiple inheritance classes? Pin
Christian Graus27-Jul-05 19:06
protectorChristian Graus27-Jul-05 19:06 
struct WFIOInfo
{
...
}

class WinFileInInterface // Note - NOT derived from WFIOInfo, defines an interface for what CWinFIleIn has that WFIOInfo does not
{
virtual void myMethod; //etc
}

class WinFileOutInterface
{
virtual void myMethod; //etc
}

class CWinFileIn : WFIOInfo, WinFileInInterface
{
}

class CWinFileOut : WFIOInfo, WinFileOutInterface
{
}

class CWinFileInOut : WFINInfo, WinFileInInterface, WinFileOutInterface
{
}

So, CWinFileInOut is not derived from either derived class, but from all three base classes that combine to make the class you're after.

Christian Graus - Microsoft MVP - C++
GeneralRe: how to design multiple inheritance classes? Pin
nm_11427-Jul-05 19:56
nm_11427-Jul-05 19:56 
GeneralRe: how to design multiple inheritance classes? Pin
GDavy27-Jul-05 20:29
GDavy27-Jul-05 20:29 
GeneralRe: how to design multiple inheritance classes? Pin
nm_11428-Jul-05 18:02
nm_11428-Jul-05 18:02 
GeneralRe: how to design multiple inheritance classes? Pin
vikramlinux27-Jul-05 20:39
vikramlinux27-Jul-05 20:39 
GeneralRe: how to design multiple inheritance classes? Pin
Bob Stanneveld27-Jul-05 21:21
Bob Stanneveld27-Jul-05 21:21 
GeneralRe: how to design multiple inheritance classes? Pin
nm_11429-Jul-05 11:24
nm_11429-Jul-05 11:24 
GeneralRe: how to design multiple inheritance classes? Pin
Christian Graus31-Jul-05 13:23
protectorChristian Graus31-Jul-05 13:23 
GeneralRe: how to design multiple inheritance classes? Pin
nm_11431-Jul-05 19:42
nm_11431-Jul-05 19:42 
GeneralRe: how to design multiple inheritance classes? Pin
Christian Graus31-Jul-05 19:45
protectorChristian Graus31-Jul-05 19:45 
GeneralRe: how to design multiple inheritance classes? Pin
sunit527-Jul-05 19:53
sunit527-Jul-05 19:53 
AnswerRe: how to design multiple inheritance classes? Pin
Tim Smith27-Jul-05 17:07
Tim Smith27-Jul-05 17:07 
Generalquestion about tab control Pin
firebolt7727-Jul-05 16:33
firebolt7727-Jul-05 16:33 
GeneralRe: question about tab control Pin
Christian Graus27-Jul-05 16:50
protectorChristian Graus27-Jul-05 16:50 
GeneralRe: question about tab control Pin
firebolt7727-Jul-05 17:00
firebolt7727-Jul-05 17:00 
GeneralRe: question about tab control Pin
Christian Graus27-Jul-05 17:04
protectorChristian Graus27-Jul-05 17:04 
GeneralRe: question about tab control Pin
firebolt7727-Jul-05 17:15
firebolt7727-Jul-05 17:15 
GeneralRe: question about tab control Pin
Christian Graus27-Jul-05 17:24
protectorChristian Graus27-Jul-05 17:24 

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.