multiple inheritance problem

Login to reply to this topic.
Tue, 2008-01-22 13:36
Joined: 2007-09-18
Forum posts: 8

Hi,

I have a class which is derived from ctimer and cmmfcontroller. Now when i create an object of my class using new n push it to the clean up stack, the compiler gives an error class "cbase" is ambiguous. Can anybody help me?


Tue, 2008-01-22 14:06
Joined: 2004-11-29
Forum posts: 1246
Re: multiple inheritance problem

You are not allowed to derive from two C classes at the same time.

Change your design. (either put the CTimer or the CMMFController in its own class, and let the other own an instance of it)

  • Login to reply to this topic.