May 31, 2023
Post comments count0
Post likes count1
C++/WinRT event handlers that are lambdas with weak pointers to the parent class, part 1

Assessing the state of affairs.
Assessing the state of affairs.
You can still do it, but it's not really supported.
There are the obvious arguments, the non-obvious arguments, and the invisible arguments.
this
pointer too lateOnce destruction begins, strong references mean nothing.
You still need to filter to your window, so you don't mess up another window on the same thread.
security.h
eitherYou may be overriding an SDK header by mistake.
It lets you change the thing being iterated over, on the fly.
std::map
or other ordered associative containerProvide a hint for the location of the next item.
You also have to catch the exception when it comes out the end of the task chain.
LVM_SORTITEMS
?How can you unring the bell?