Posts by this author

Dec 18, 2006
Post comments count0
Post likes count0

Some call it context, others call it reference data, but whatever it is, it's yours

Different functions call it different things. calls it . calls it reference data. calls it . just calls it a parameter! But whatever its name is, it means the same thing: It's a value the function doesn't care about. All the function does is hand that value back to you. What the value means is up to you. What if you need to pass more context ...

Code
Dec 18, 2006
Post comments count0
Post likes count0

Do not write in-process shell extensions in managed code

Jesse Kaplan, one of the CLR program managers, explains why you shouldn't write in-process shell extensions in managed code. The short version is that doing so introduces a CLR version dependency which may conflict with the CLR version expected by the host process. Remember that shell extensions are injected into all processes that use the shell ...

Code
Dec 14, 2006
Post comments count0
Post likes count0

Computing listview infotips in the background

When the listview control asks you for an infotip, it sends you then notification, and when you return, the result is displayed as the infotip. But what if computing the infotip takes a long time? You don't want to stall the UI thread on a long operation, after all. This is where comes in. If you want to say, "Um, I'm not ready with that infot...

Code
Dec 13, 2006
Post comments count0
Post likes count0

Maybe if it had characters and stuff and different levels, it would be OK

In a classic series, Electronic Games Monthly plopped modern kids, ages 9 through 12, in front of classic video games: Pong, Donkey Kong, Tetris. And then recorded their reactions. Here, the kids are playing Tetris and appear to be obsessed with stuff blowing up. Tim: Which button do I press to make the blocks explode? EGM: Sorry, they don't e...

Non-Computer
Dec 13, 2006
Post comments count0
Post likes count0

Displaying infotips for folded and unfolded listview items

When displaying infotips for listview items, you have to deal with both the folded and unfolded case. "Folded" is the term used to describe a listview item in large icon mode whose text has been truncated due to length. When the user selects the item, the full text is revealed, a process known as "unfolding". Take our scratch program and make t...

Code
Dec 12, 2006
Post comments count0
Post likes count0

Jeanne Martinet teaches you how to survive a party where you don't know anybody

It's the time of year where you may find yourself attending a party where you know hardly anyone. Jeanne Martinet, author of The Art of Mingling, walks Steve Inskeep through a mock-party with tips on how to join a conversation, and (perhaps more importantly) exit one. Don't just read the article; you need to listen to the story. The mock-party is...

Non-Computer
Dec 11, 2006
Post comments count0
Post likes count0

What does an invalid handle exception in LeaveCriticalSection mean?

Internally, a critical section is a bunch of counters and flags, and possibly an event. (Note that the internal structure of a critical section is subject to change at any time—in fact, it changed between Windows XP and Windows 2003. The information provided here is therefore intended for troubleshooting and debugging purposes and ...

Other
Dec 8, 2006
Post comments count0
Post likes count0

Throwing things into a blender and seeing what happens

Manufacturer of commercial and home blenders Blendtec has produced a marketing web site Will It Blend? which features short videos of the company's CEO and new Internet blending icon Tom Dickson throwing all sorts of unusual objects into one of their blenders, to see what happens. (The videos are also on YouTube, and of course they have a blog, ...

Non-Computer