S
SteveK
Just trying to work through some examples I have seen on the web.... I'm
getting an unresolved external linker error for operator new and delete.
Here is the code, VERY simple.
#pragma once
using namespace System;
namespace AB_Wrapper
{
// unmanaged class
class CMyOldClass
{
public:
CMyOldClass(int i)
{
m_i = i;
}
int GetValue(){ return m_i; };
private:
int m_i;
};
// managed class
public __gc class Class1
{
public:
Class1()
{
m_pOldClass = new CMyOldClass(666);
}
int GetValue()
{
return m_pOldClass->GetValue();
}
private:
CMyOldClass* m_pOldClass;
};
}
anyone have any ideas?
getting an unresolved external linker error for operator new and delete.
Here is the code, VERY simple.
#pragma once
using namespace System;
namespace AB_Wrapper
{
// unmanaged class
class CMyOldClass
{
public:
CMyOldClass(int i)
{
m_i = i;
}
int GetValue(){ return m_i; };
private:
int m_i;
};
// managed class
public __gc class Class1
{
public:
Class1()
{
m_pOldClass = new CMyOldClass(666);
}
int GetValue()
{
return m_pOldClass->GetValue();
}
private:
CMyOldClass* m_pOldClass;
};
}
anyone have any ideas?