H
Henke
I get a unresolved external error when linking this code. Does anybody know
why?
..h-file
namespace TestDll
{
__gc class Class1
{
public:
Class1();
};
}
..cpp-file
namespace TestDll
{
__nogc struct MyStruct
{
int i;
double j;
};
Class1::Class1()
{
MyStruct *pStruct = __nogc new MyStruct();
}
}
Thanks in advance
/Henke
why?
..h-file
namespace TestDll
{
__gc class Class1
{
public:
Class1();
};
}
..cpp-file
namespace TestDll
{
__nogc struct MyStruct
{
int i;
double j;
};
Class1::Class1()
{
MyStruct *pStruct = __nogc new MyStruct();
}
}
Thanks in advance
/Henke