How do I get the effect of C#’s async void in a C++ coroutine? Part 3: Simplifying the boilerplate January 18, 2019 Jan 18, 2019 01/18/19 Raymond Chen Factoring it out.
How do I get the effect of C#’s async void in a C++ coroutine? Part 2: Keeping track of the lifetimes January 17, 2019 Jan 17, 2019 01/17/19 Raymond Chen There are two types of lambdas you have to write, so why not write two lambdas?
How do I get the effect of C#’s async void in a C++ coroutine? Part 1: Why does the obvious solution crash? January 16, 2019 Jan 16, 2019 01/16/19 Raymond Chen Wrap it up, but watch out how you do it.
Don’t pass lambdas (or other multi-line entities) as parameters to macros January 15, 2019 Jan 15, 2019 01/15/19 Raymond Chen It makes debugging much more difficult.
Why would the incremental linker insert padding between section fragments? January 14, 2019 Jan 14, 2019 01/14/19 Raymond Chen So it can be incremental more easily.
Why do we even need to define a red zone? Can’t I just use my stack for anything? January 11, 2019 Jan 11, 2019 01/11/19 Raymond Chen I mean, it's my stack, isn't it?
Why am I getting mojibake when I try to create a window? January 10, 2019 Jan 10, 2019 01/10/19 Raymond Chen Look for the character set mismatch.
It rather involved being on the other side of this airtight hatchway: Messing with somebody’s registry January 9, 2019 Jan 9, 2019 01/9/19 Raymond Chen Getting to the other side is left as an exercise.
STATUS_STACK_BUFFER_OVERRUN doesn’t mean that there was a stack buffer overrun January 8, 2019 Jan 8, 2019 01/8/19 Raymond Chen It used to mean that, but now it can mean other things, too.
The GetRegionData function fails if the buffer is allocated on the stack. Is it allergic to stack memory or something? January 7, 2019 Jan 7, 2019 01/7/19 Raymond Chen One of the lesser-known ground rules.