I
Irakli Lomidze
Dear Sirs plz Help me
I'm Trying compile in C++ .NET 2003 (VS 2003 Enterprise Arcitech)
This Code (From MSDN) And Gives LNK2001 Linker Error
When i remove "new" operator form constructor all works fine
plz help me what happand and how slove this problem
This code has no problem in vc++2002
class CppClass
{
public:
// constructor
CppClass() {}
// destructor
~CppClass() {}
// methods
void native_f() {}
};
__gc class MClass
{
public:
// constructor
MClass() { m_pC = new CppClass(); }
// destructor
~MClass() { delete m_pC; }
// method
void managed_f() { m_pC->native_f(); }
private:
CppClass __nogc * m_pC;
};
I'm Trying compile in C++ .NET 2003 (VS 2003 Enterprise Arcitech)
This Code (From MSDN) And Gives LNK2001 Linker Error
When i remove "new" operator form constructor all works fine
plz help me what happand and how slove this problem
This code has no problem in vc++2002
class CppClass
{
public:
// constructor
CppClass() {}
// destructor
~CppClass() {}
// methods
void native_f() {}
};
__gc class MClass
{
public:
// constructor
MClass() { m_pC = new CppClass(); }
// destructor
~MClass() { delete m_pC; }
// method
void managed_f() { m_pC->native_f(); }
private:
CppClass __nogc * m_pC;
};