i have a working example for a singleton class
file exmpl.hpp
andCode:class cX { private: static cX *iX; public: static cX* Create() { if(iX==NULL) { iX=new cX(); } return iX; }; };
file: exmpl.cpp
somebody an idea how to put that together into 1 header?Code:cX* cX::iX=NULL; // INIT <- THIS