The Old New Thing
Practical development throughout the evolution of Windows.
Latest posts
Jan 15, 2019
Post comments count
0
Post likes count
1
Don’t pass lambdas (or other multi-line entities) as parameters to macros
It makes debugging much more difficult.
Jan 14, 2019
Post comments count
0
Post likes count
1
Why would the incremental linker insert padding between section fragments?
So it can be incremental more easily.
Jan 11, 2019
Post comments count
0
Post likes count
3
Why do we even need to define a red zone? Can’t I just use my stack for anything?
I mean, it's my stack, isn't it?
Jan 10, 2019
Post comments count
0
Post likes count
1
Why am I getting mojibake when I try to create a window?
Look for the character set mismatch.
Jan 9, 2019
Post comments count
0
Post likes count
1
It rather involved being on the other side of this airtight hatchway: Messing with somebody’s registry
Getting to the other side is left as an exercise.
Jan 8, 2019
Post comments count
0
Post likes count
3
STATUS_STACK_BUFFER_OVERRUN doesn’t mean that there was a stack buffer overrun
It used to mean that, but now it can mean other things, too.
Jan 7, 2019
Post comments count
0
Post likes count
1
The GetRegionData function fails if the buffer is allocated on the stack. Is it allergic to stack memory or something?
One of the lesser-known ground rules.
Jan 4, 2019
Post comments count
0
Post likes count
1
A trick for keeping an object alive in a C++ lambda while still being able to use the this keyword to refer to it
Capture it twice, once for the money, and once for the show.
Jan 3, 2019
Post comments count
0
Post likes count
1
Why am I getting mojibake when I try to create a shell link?
Make sure the thing you ask for is the thing you want.