G
Guest
I'm trying to make a class that already inherits from a base class, also
inherit from an interface in managed C++.
so my interface looks like so:
__gc interface ITask
{
__property String* get_Subject();
};
and the class that inherits from it is defined like so:
public __gc class Message : public MsgObject, public ITask {
and the get_Subject property in the header file for Message looks like so:
__property String* get_Subject();
but no matter what i try, i cant get it to compile. I've played with every
combination of __gc, interface, __interface, public or not and no luck.
mostly i get a compile error stating that my Message class can only inherit
from one base class. but i've got the ITask defined as an interface. any
ideas?
thanks.
inherit from an interface in managed C++.
so my interface looks like so:
__gc interface ITask
{
__property String* get_Subject();
};
and the class that inherits from it is defined like so:
public __gc class Message : public MsgObject, public ITask {
and the get_Subject property in the header file for Message looks like so:
__property String* get_Subject();
but no matter what i try, i cant get it to compile. I've played with every
combination of __gc, interface, __interface, public or not and no luck.
mostly i get a compile error stating that my Message class can only inherit
from one base class. but i've got the ITask defined as an interface. any
ideas?
thanks.