I receive an error when I try this:
template <typename HANDLE _Init=NULL>
m_hHanlde = _Init;
Now to define a specility of the class:
typedef CMyClass<-1> CMyOtherClass;
This is where the compiler gives an error: a signed int cannot be converted/casted to a void* (which is a HANDLE)
typedef CMyClass<0xFFFFFFFF> CMyOtherClass;
Doesn't work either !
Anybody knows the answer ?