Quote:
Originally Posted by SaschArt
I test void OnActivate(bool active) with no success.
|
Not sure exactly what you want to do, but OnActivate is of return type void, so it's not a test. The comments make it clear it's not for what you think it's for, and the default, essentially null implementation is not overriden:
Code:
// Not usually needed ... Reset is called on activate regardless of whether this is implemented.
// Also different hosts have different interpretations of "activate".
// Implementations should set a mutex lock like in the no-op!
virtual void OnActivate(bool active) { TRACE; IMutexLock lock(this); }