M
Morten Aune Lyrstad
Hi there! I have written this message before, but for some reason it did
not appear to show up on the board. If it does, then I have a problem
with my newsgroup app, and I apologize for double posting.
Here's my problem:
I have a base interface class, named IObject. Next I have two classes
based on this, named IControl and ICommandMaster. Third I have a control
class named CCommand which inherits from /both/ IControl and
ICommandMaster. So, obviously, my compiler screams
<quote>
ambiguous access of 'Release' in 'Win32::Controls::CCommand'
could be the 'Release' in base 'CS::IObject::Release'
or the 'Release' in base 'CS::IObject::Release'
</quote>.
(Weird error message, btw;-)). But can I somehow solve this ambiguety?
Both IControl and ICommandMaster _must_ derive from IObject somehow,
because I have to be able to call a function named Release in IObject. I
might have a ICommandMaster which is _not_ a IControl and vice versa.
not appear to show up on the board. If it does, then I have a problem
with my newsgroup app, and I apologize for double posting.
Here's my problem:
I have a base interface class, named IObject. Next I have two classes
based on this, named IControl and ICommandMaster. Third I have a control
class named CCommand which inherits from /both/ IControl and
ICommandMaster. So, obviously, my compiler screams
<quote>
ambiguous access of 'Release' in 'Win32::Controls::CCommand'
could be the 'Release' in base 'CS::IObject::Release'
or the 'Release' in base 'CS::IObject::Release'
</quote>.
(Weird error message, btw;-)). But can I somehow solve this ambiguety?
Both IControl and ICommandMaster _must_ derive from IObject somehow,
because I have to be able to call a function named Release in IObject. I
might have a ICommandMaster which is _not_ a IControl and vice versa.