16 Apr
2009
16 Apr
'09
11:39 a.m.
2009/4/16 Roman Perepelitsa
If you don't want or can't overload get_pointer, you can use double bind trick.
CComPtr<ThisObj> self(this); asyncSubsystem_->doSomething(bind(bind(&ThisObj::handler, this), self));
Sorry, you'll also need a protect. asyncSubsystem_->doSomething(bind(protect(bind(&ThisObj::handler, this)), self)); Roman Perepelitsa.