Showing archive results for 2008

Jul 25, 2008
Post comments count0
Post likes count0

Why seventh grade students want to go to weddings

Raymond Chen

My friend the seventh-grade teacher is getting married this summer, and when her students learned about the impending nuptials, they couldn't contain their excitement. The students asked her if there was going to be a chocolate fountain. Because you can't not have a chocolate fountain. When they learned that, no, there will not be a chocolate f...

Non-Computer
Jul 25, 2008
Post comments count0
Post likes count1

Simulating a drop, part two

Raymond Chen

Last time, we wrote a tiny program to simulate dropping a file on another file, but we discovered that it didn't work for dropping a file onto Mail Recipient.MAPIMail. The reason, as you no doubt instantly recognized, is that the MAPIMail handler creates a worker thread, and we're exiting the process before the worker thread has finished its work....

Code
Jul 24, 2008
Post comments count0
Post likes count1

Reading a contract from the other side: Simulating a drop

Raymond Chen

Most people, when they think of the IDropTarget interface, think only of implementing a drop target. But you can read the contract from the other side, because the description of how a drag source interacts with a drop target tells you how to be a drag source. To summarize, the sequence of drop target operations go like this: IDropTarget::Drag...

Code
Jul 23, 2008
Post comments count0
Post likes count1

Things other people have written that have amused me

Raymond Chen

I occasionally post things I've written that have amused other people, but today I'm going to share something Betsy Aoki wrote that amused me. On one of our internal mailing lists, somebody wondered why we don't use email spam filters to attack comment spam and trackback spam. My point was that the goal of email spam is very different from the goa...

Non-ComputerThings I've written that have amused other people
Jul 23, 2008
Post comments count0
Post likes count1

Theorize if you want, but if the problem is right there in front of you, why not go for the facts?

Raymond Chen

On an internal discussion list, somebody asked a question similar to this: My program launches a helper program. This helper program does different things based on the command line parameters, but the way I'm using it, it just prints its results to the console and exits. When I launch this program and wait for it to exit, my wait never completes....

Code
Jul 22, 2008
Post comments count0
Post likes count1

Windows could not properly load the XYZ keyboard layout

Raymond Chen

In my rôle as the family technical support department, I get to poke around without really knowing what I'm doing and hope to stumble across a solution. Sometimes I succeed; sometimes I fail. Today, I'm documenting one of my successes in the hope that it might come in handy for you, the technical support department for your family. (If not...

Tips/Support
Jul 21, 2008
Post comments count0
Post likes count0

A modest proposal: Getting people to stop buying SUVs

Raymond Chen

I developed this modest proposal many years ago, but it looks like rising gasoline prices have done the job. But in case they don't, here's my plan. SUVs are classified as "trucks" for the purpose of C.A.F.E. regulations, and those regulations are more lenient on gasoline efficiency for trucks. As a result, the auto industry happily built SUVs...

Non-ComputerA modest proposal
Jul 21, 2008
Post comments count0
Post likes count1

MessageBoxIndirect loads the icon itself; you can’t hand it a pre-loaded icon

Raymond Chen

Commenter 8 wants to know how to tell the function to use an existing instead of pointing it to an icon resource. You can't. The loads the icon itself. You can't hand it a pre-loaded icon. Of course, it's hardly rocket science to write your own function that lets you use whatever icon you want. There's no law that says all Yes/No dialo...

Code
Jul 18, 2008
Post comments count0
Post likes count0

Dr. Horrible’s Sing-Along Blog, available online for a short time only

Raymond Chen

Get it while it's hot. Available through this weekend only, Dr. Horrible's Sing-Along Blog is a three-act Web series featuring Neil Patrick Harris as Dr. Horrible, a wannabe mad scientist evildoer who video-blogs about his plans for world domination, his application to the Evil League of Evil, his arch-enemy Captain Hammer, and his crush on the cu...

Non-Computer