I have the following class:
class MyClass { public: MyClass( char* what ) : controlled( what ) {} ~MyClass() { delete[] controlled; } operator char*() c
You cannot implicitly cast a T* to long. But you can cast a bool to long.
T*
So the operator bool is used.
operator bool
You have to define a operator LPARAM.
operator LPARAM