G
Guest
I'm having problems using static members of a class (largely HANDLEs of various sorts) as static class members of a class. It compiles OK but the linker complains of unresolved external symbol. Declaring them as just normal globals or member variables doesn't cause the said problem
I've got them such a
static HCURSOR g_hcWait
...
MyClass::g_hcWait = LoadCursor(NULL, IDC_WAIT); //(yes I do use LoadImage really I just put that to be brief
this is something that should logically be shared across all members of a class, am I doing it wrong?
I've got them such a
static HCURSOR g_hcWait
...
MyClass::g_hcWait = LoadCursor(NULL, IDC_WAIT); //(yes I do use LoadImage really I just put that to be brief
this is something that should logically be shared across all members of a class, am I doing it wrong?