Showing archive results for 2010

Nov 4, 2010
Post comments count0
Post likes count1

The story of MUI, as told by others (with some commentary)

Raymond Chen
Raymond Chen

First, the story as told by others: Now the question you're all going to ask so I may as well answer it: Why is this information kept in a file instead of being attached to the file itself (say, in an alternate stream)? If it were in an alternate stream, then it would track the file when it was moved or copied. First answer: Because alternate ...

Other
Nov 3, 2010
Post comments count0
Post likes count1

The quiet fading away of the CtlPanelClass

Raymond Chen
Raymond Chen

If you search MSDN for , you'll find a few really old Knowledge Base articles that include it in a list of "class names of common Windows applications." I'm not sure why the Knowledge Base articles bothered to list those classes; there is no technical reason for applications to need to know this, and including the information merely encourages prog...

History
Nov 2, 2010
Post comments count0
Post likes count0

The wisdom of seventh graders: Being President

Raymond Chen
Raymond Chen

Today is Election Day in the United States. Some years ago, seventh grade students (age 12) were asked to imagine they had just been elected president and to give an address to the nation on one thing they would change. Remember, these are only the most entertaining ideas. Do not assume all student ideas are like these. And this sentence c...

Non-ComputerThe wisdom of seventh graders
Nov 2, 2010
Post comments count0
Post likes count1

Saying that your case is different doesn't make it so

Raymond Chen
Raymond Chen

A customer wanted to do one of those user-hostile things that Windows doesn't make easy to do (the sort of thing I tend to call out on this Web site). After receiving an explanation that Windows doesn't provide a way of doing what they want because it abuses the component in question and goes against user expectations, the customer countered, "Yes,...

Other
Nov 1, 2010
Post comments count0
Post likes count1

Why doesn't the End Task button end my task immediately?

Raymond Chen
Raymond Chen

Commenter littleguru asks, "Why does the End Now button not kill the process immediately?" When you click the End Now button, the process really does end now, but not before a brief message from our sponsor. When you kill a hung application, Windows Error Reporting steps in to record the state of the hung application so it can be submitted to the...

Other
Oct 29, 2010
Post comments count0
Post likes count0

It's the Great Pumpkin, Charlie Brown: The world of competitive pumpkin-growing

Raymond Chen
Raymond Chen

Bill Littlefield of NPR's sports program Only a Game interviews Susan Warren about competitive pumpkin-growing. [Direct link - Real format] An excerpt from her book Backyard Giants was printed in The Wall Street Journal: The Race to Break the Squash Barrier, the quest to grow a one-ton pumpkin. I'm fascinated by these subcultures of people ob...

Non-Computer
Oct 29, 2010
Post comments count0
Post likes count1

Debugging walkthrough: Diagnosing a __purecall failure

Raymond Chen
Raymond Chen

Prerequisite: Understanding what means. I was asked to help diagnose an issue in which a program managed to stumble into the function. The stack at the point of failure looked like this: The line at that called the mystic was a simple : From what we know of , this means that somebody called into a virtual method on a derived class ...

Other
Oct 28, 2010
Post comments count0
Post likes count1

Why is there an LVN_ODSTATECHANGED notification when there's already a perfectly good LVN_ITEMCHANGED notification?

Raymond Chen
Raymond Chen

If you work with owner-data listviews, you take the responsibility for managing the data associated with each item in the list view. The list view control itself only knows how many items there are; when it needs information about an item, it asks you for it. It's the fancy name for a "virtual list view" control. When you use an ownerdata list vi...

Code
Oct 27, 2010
Post comments count0
Post likes count1

How do I programmatically invoke Aero Peek on a window?

Raymond Chen
Raymond Chen

A customer wanted to know if there was a way for their application to invoke the Aero Peek feature so that their window appeared and all the other windows on the system turned transparent. No, there is no such programmatic interface exposed. Aero Peek is a feature for the user to invoke, not a feature for applications to invoke so they can draw a...

Other