The Old New Thing

Case mapping on Unicode is hard
Case mapping on Unicode is hard
Occasionally, I'm asked, "I have to identify strings that are identical, case-insensitively.  How do I do it?" The answer is, "Well, it depends. Whose case-mapping rules do you want to use?" Sometimes the reply is, "I want this to be language-independent." Now ...
Comments are closed.0Code
Why are the rules for GetWindowText so weird?
Why are the rules for GetWindowText so weird?
Joel Spolsky rightly points out that the rules for GetWindowText exhibit abstraction leakage. Why are the rules for GetWindowText so weird? Set the wayback machine to 1983. Your typical PC had an 8086 processor running at a whopping 4.7MHz, two 360K 5¼-inch floppy drives (or if you...
Why is there no programmatic access to the Start menu pin list?
Why is there no programmatic access to the Start menu pin list?
We learned our lesson the hard way. In Windows 95, we gave programmatic access to the Start menu "Fast items" list - the items that appear at the top of the Start menu above the Programs list. This area was meant for the user to customize with their favorite links, but programs quickly ...
The World Adult Kickball Association
The World Adult Kickball Association
"People just want to come out and have fun," Smith said. "A lot of the sports leagues out there, unless you're die-hard, unless you're so serious, people end up getting left out," he said. Not so with kickball. "People haven't done it since grade school, so it's not like people ...
Determining whether your window is covered
Determining whether your window is covered
The method described in the previous coding blog entry works great if you are using the window visibility state to control painting, since you're using the paint system itself to do the heavy lifting for you. To obtain this information outside of the paint loop, use GetDC and GetClipBox...
Comments are closed.0Code
Even the trees are falling for the media's lies
Even the trees are falling for the media's lies
The White House is doing some renovating of its own (NYT, free registration required), in order to refurbish a section of the lawn that is used by television reporters so they can stand there with a nice picture of the White House behind them. But that's not why I found this story interesting. Go about halfway down the article: "The light...
Suburbs make you fat, researchers conclude
Suburbs make you fat, researchers conclude
Researchers have determined that living in the suburbs makes you fat. That and all the super-sized value meals. Speaking of super-sizing your value meal: people are tearing down their McMansions in order to build... a bigger McMansion (WSJ, paid registration required, sorry...
The default answer to every dialog box is "Cancel"
The default answer to every dialog box is "Cancel"
The problem with displaying UI is that people will take every opportunity to ignore it. This story of how people deal with virus warning dialogs (via Don Browning) is a template for how users treat any unexpected dialog: They try to get rid of it. We see this time and time again...
Comments are closed.0Other
Setup could not verify integrity of file
Setup could not verify integrity of file
When you try to install a patch, you may get the error message "Setup could not verify integrity of file. Make sure the cryptographic service is running." This typically means that the signature catalog has been corrupted. There was a patch to fix this problem, but of course if you haven'...