The Old New Thing
Practical development throughout the evolution of Windows.
Latest posts
Dec 3, 2018
Post comments count
0
Post likes count
1
Choosing error codes based on a really nice #define doesn’t necessarily lead to a readable message to the user
Device not ready? What device?
Nov 30, 2018
Post comments count
0
Post likes count
1
Why does Clipboard.SetData put extra junk in the clipboard data? And how can I get it to stop?
Strings and things, but you need the things.
Nov 29, 2018
Post comments count
0
Post likes count
1
Taking advantage of the ordering guarantees of the LINQ GroupBy method
Sorting and grouping in a particular way.
Nov 28, 2018
Post comments count
0
Post likes count
1
What happens if I mutate a string in a p/invoke?
It seems to work, for specific meanings of "seems".
Nov 27, 2018
Post comments count
0
Post likes count
1
Nifty trick: Combining constructor with collection initializer
Two great tastes that work great together.
Nov 26, 2018
Post comments count
0
Post likes count
1
What’s up with Code Analysis rule CA2202: Do not dispose objects multiple times?
It's trying to get inside your head.
Nov 23, 2018
Post comments count
0
Post likes count
1
If activation of your gift card lasts more than four hours, consult a physician immediately
Is it ready yet?
Nov 23, 2018
Post comments count
0
Post likes count
1
The default number of threads in an I/O completion port is the number of processors, but is that logical or physical processors?
How much stuff can happen at once?
Nov 22, 2018
Post comments count
0
Post likes count
1
How can I make a dialog box right-to-left at runtime?
You'll have to get that style change in quickly.