C
Corey Wirun
Hi All,
I've got a template class:
template < typename T >
class A: public B
{
public:
A();
virtual ~A();
virtual void PreSubclassWindow();
virtual void DefineColumns( int i ) = 0;
...
}
And I want to derive a class from 'A' called 'Derived':
class Derived: public A< DataClass >
{
Derived();
virtual ~Derived();
}
The problem is that when I link (VS.Net 2002, unmanaged), I get 'unsolved
symbols' for the constructor and all virtuals for the base class 'A', in the
derived class' object code.
e.g.
B.obj: unresolved external symbol "protected: virtual void __thiscall
A<class DataClass>:reSubclassWindow(void)"
(?PreSubclassWindow@?$A@VDataClass@@@@MAEXXZ)
Does anyone know why this occurs? Is there something extra I have to do
syntactically to get it to work?
Thanks all!
C.
I've got a template class:
template < typename T >
class A: public B
{
public:
A();
virtual ~A();
virtual void PreSubclassWindow();
virtual void DefineColumns( int i ) = 0;
...
}
And I want to derive a class from 'A' called 'Derived':
class Derived: public A< DataClass >
{
Derived();
virtual ~Derived();
}
The problem is that when I link (VS.Net 2002, unmanaged), I get 'unsolved
symbols' for the constructor and all virtuals for the base class 'A', in the
derived class' object code.
e.g.
B.obj: unresolved external symbol "protected: virtual void __thiscall
A<class DataClass>:reSubclassWindow(void)"
(?PreSubclassWindow@?$A@VDataClass@@@@MAEXXZ)
Does anyone know why this occurs? Is there something extra I have to do
syntactically to get it to work?
Thanks all!
C.