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

  • Thread starter Duncan Aitken via .NET 247
  • 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.
 
L

Lord2702

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top