I'm trying to create a static struct in C++:
static struct Brushes
{
static HBRUSH white ;
static HBRUSH yellow ;
} ;
But its not working, I'm getting:
Error 4 error LNK2001: unresolved external symbol "public: static struct HBRUSH__ * Brushes::white"
Why?
The idea is to be able to use Brushes::white, Brushes::yellow throughout the program, without having to create an instance of Brushes.