[.NET managed c++] Calling parent constructor.

  • Thread starter Thread starter Duncan Aitken via .NET 247
  • Start date Start date
D

Duncan Aitken via .NET 247

All,

In an inherited managed c++ class, how do you call the contstructor of the parent class? I tried with the usual Parent::Parent(...), but get compiler error C3257. Any ideas?

Thanks,

Duncan.
 
See the following code:

[Serializable]
public __gc class SDataTable : public DataTable, public ISerializable
{

SDataTable(void) : DataTable()
{
}

SDataTable(String *strTableName) : DataTable(strTableName)
{
}

};

Duncan Aitken via .NET 247 said:
All,

In an inherited managed c++ class, how do you call the contstructor of the
parent class? I tried with the usual Parent::Parent(...), but get compiler
error C3257. Any ideas?
 
Back
Top