How do I prevent my C++/WinRT implementation class from participating in COM aggregation? January 8, 2024 Jan 8, 2024 01/8/24 Raymond Chen Looking for a clue.
The case of the vector with an impossibly large size January 5, 2024 Jan 5, 2024 01/5/24 Raymond Chen Play threading games, win threading prizes.
How can I specify icons for my app to use on the Start menu in high contrast mode? January 4, 2024 Jan 4, 2024 01/4/24 Raymond Chen Put them in your manifest.
Why doesn’t my code compile when I change a shared_ptr<T>(p) to an equivalent make_shared<T>(p)? January 3, 2024 Jan 3, 2024 01/3/24 Raymond Chen It depends on who is doing the parameter conversion.
How do I prevent my ATL class from participating in COM aggregation? DECLARE_NOT_AGGREGATABLE didn’t work January 1, 2024 Jan 1, 2024 01/1/24 Raymond Chen That marker applies only to creation via the class factory.
How to allocate address space with a custom alignment or in a custom address region December 29, 2023 Dec 29, 2023 12/29/23 Raymond Chen Some new powers to guide the allocation.
On calling AfxConnectionAdvise with bAddRef set to FALSE December 28, 2023 Dec 28, 2023 12/28/23 Raymond Chen Playing fast and loose, and eventually you get burnt.
What does it mean when the compiler says that it can’t convert something to itself? December 27, 2023 Dec 27, 2023 12/27/23 Raymond Chen Why is it even thinking about a conversion?
Don’t keep state in your XAML item templates; put the state in the items December 26, 2023 Dec 26, 2023 12/26/23 Raymond Chen Beware of temporary alliances.
If I don’t have any items, what error should my IFolderView::Items method return? December 22, 2023 Dec 22, 2023 12/22/23 Raymond Chen It shouldn't return an error at all.