J
Jim Tester
I have the following class:
In MyIClass
class MyInterfaceClass
{
public:
explicit MyInterfaceClass( char const * const pName, bool init );
virtual ~MyInterfaceClass( void );
// Some pure virtual functions
}
I then create the following class:
class MyCClass :
public MyInterfaceClass
{
public:
explicit MyCClass( char const * const pName, bool init );
virtual ~MyCClass( void );
// The overloaded virtual functions from MyInterfaceClass
}
Both of the constructors and destructors are defined in their respective
..cpp
file.
Then somewhere else I do the following:
MyCClass cclass = new MyCClass("Name", true);
However I get the following compilation error:
error 2514: 'MyCClass' has no constructors
What could be a reason I get this error?
Thanks,
Jimmy
In MyIClass
class MyInterfaceClass
{
public:
explicit MyInterfaceClass( char const * const pName, bool init );
virtual ~MyInterfaceClass( void );
// Some pure virtual functions
}
I then create the following class:
class MyCClass :
public MyInterfaceClass
{
public:
explicit MyCClass( char const * const pName, bool init );
virtual ~MyCClass( void );
// The overloaded virtual functions from MyInterfaceClass
}
Both of the constructors and destructors are defined in their respective
..cpp
file.
Then somewhere else I do the following:
MyCClass cclass = new MyCClass("Name", true);
However I get the following compilation error:
error 2514: 'MyCClass' has no constructors
What could be a reason I get this error?
Thanks,
Jimmy