Is there any chance I can serialize a static data member ?
Consider the following case.
class CB:public CA
static UINT m_number;
..... (more data menbers)
..... (some functions)
Serialize (Carchive &ar);
The function serialize is defined as follows:
void CB::Serialize(CArchive &ar)
m_number is used to store the amount of objects of the same class.
When linking the following error occurs:
rror LNK2001: unresolved external symbol "protected: static unsigned int CB::m_number" (?m_number@CB@@1IA)
Any help ? thanks.