Showing archive results for 2007

Aug 22, 2007
Post comments count0
Post likes count1

Windows Vista has more extended options on the context menu

Raymond Chen

As we saw when we discussed context menus, holding down the shift key when opening a context menu adds so-called extended verbs to the menu. These are verbs that are less frequently used whose presence would clutter up the menu or pose an attractive nuisance. For example, the "Command Prompt Here" command is an extended command since your typica...

Tips/Support
Aug 21, 2007
Post comments count0
Post likes count1

We're all in this together: Maintaining common tools

Raymond Chen

In the Windows division, as with any other product group, there is a common "bag of tools" that people tend to rely on to get through the day. Occasionally, somebody will encounter a problem with one of these tools. When I run Program Q, I get the message XYZ, and then it appears to get stuck in an infinite loop allocating more and more memor...

OtherThe social skills of a thermonuclear device
Aug 20, 2007
Post comments count0
Post likes count1

When you copy a folder, why are the contents merged with the existing contents?

Raymond Chen

When you use Explorer to copy a folder, and the folder already exists at the destination, Explorer merges the contents of the folder being copied with the folder that is already there. Why was this behavior chosen instead of replacing the existing folder? My colleague Bob Day explains.¹ Nitpicker's Corner ¹Although this statement is w...

Other
Aug 20, 2007
Post comments count0
Post likes count1

Just because you're a control doesn't mean that you're necessarily inside a dialog box

Raymond Chen

Prerequisites: Moderate to advanced understanding of the window and dialog managers. When you're implementing a control, you need to be aware that you aren't necessarily being hosted inside a dialog box. One commenter suggested handling and closing the dialog box as a way to prevent multi-line edit controls from eating the Enter key. But the edi...

History
Aug 17, 2007
Post comments count0
Post likes count0

Do you have a Starbucks name?

Raymond Chen

Annabelle Gurwitch has found what may be one of the few remaining places where you can be anybody you want: Starbucks. Check out the part towards the end where people on the street are asked to share their Starbucks names. I'm reminded of a time many years ago when Schultzy's Sausage had expanded to a second location in Redmond. (They closed the...

Non-Computer
Aug 17, 2007
Post comments count0
Post likes count1

What are these spurious nop instructions doing in my C# code?

Raymond Chen

Prerequisites: Basic understanding of assembly language. When you debug through some managed code at the assembly level, you may find that there are an awful lot of instructions scattered throughout your method. What are they doing there; isn't the JIT smart enough to remove them? Isn't this going to slow down execution of my program? It is my u...

Code
Aug 16, 2007
Post comments count0
Post likes count0

The Radioactive Boy Scout is back in the news

Raymond Chen

The Radioactive Boy Scout appears to be back to his old tricks.¹ Nitpicker's Corner ¹Although this statement is written as if it were a fact, it is actually my interpretation of a newspaper article and is not an official position of Microsoft Corporation.

Non-Computer
Aug 16, 2007
Post comments count0
Post likes count0

What are these strange cmp [ecx], ecx instructions doing in my C# code?

Raymond Chen

When you debug through some managed code at the assembly level, you'll find a whole lot of seemingly pointless instructions that perform a comparison but ignore the result. What's the point of comparing two values if you don't care what the result is? In C++, invoking an instance method on a pointer results in undefined behavior. In other words, ...

Code
Aug 15, 2007
Post comments count0
Post likes count1

For $15, you can purchase incorrect information, and to prevent people from getting it, you have to renew every three months

Raymond Chen

Given what I know about Naveen Jain, I basically view everything he does with enormous skepticism.¹ I mean, I trust lawyers more than I trust that guy, that's how bad it is. After being booted from InfoSpace, Jain moved across the street and founded Intelius, a company that does basically the same thing: Selling directory information.² ...

Non-Computer