Welcome to MSDN Blogs Sign in | Join | Help

May 2005 - Posts

Using modular arithmetic to avoid timing overflow problems

Avoiding timing overflows is easier than you think.
Posted by oldnewthing | 21 Comments
Filed under:

You can't simulate keyboard input with PostMessage

It won't update the keyboard states, among other things.
Posted by oldnewthing | 15 Comments
Filed under:

When is x/2 different from x>>1?

When x is negative.
Posted by oldnewthing | 25 Comments
Filed under:

Why does Add or Remove Programs show a large blank space?

A program has registered a bad uninstall icon.
Posted by oldnewthing | 43 Comments
Filed under:

The effect of SetCursor lasts only until the next SetCursor

And remember that pumping messages can change the cursor.
Posted by oldnewthing | 8 Comments
Filed under:

Understanding ternary raster operations

It's perfectly logical, which doesn't mean that it's easy to understand.
Posted by oldnewthing | 9 Comments
Filed under:

Boil first, then mash

Scottish schoolchildren unable to accomplish what some consider "basic life skills".
Posted by oldnewthing | 40 Comments
Filed under:

Why are DLLs unloaded in the "wrong" order?

Because there sometimes isn't enough information to determine what the "right" order is.
Posted by oldnewthing | 15 Comments
Filed under:

I'd like to register my stolen car, please

The curious status of stolen cars in Gaza.
Posted by oldnewthing | 7 Comments
Filed under:

When is a window visible yet not visible?

When its parent is not visible.
Posted by oldnewthing | 6 Comments
Filed under:

Loading the dictionary, part 6: Taking advantage of our memory allocation pattern

Designing a memory allocator that exploits our memory allocation pattern.
Posted by oldnewthing | 25 Comments
Filed under:

Loading the dictionary, part 5: Avoiding string copying

Removing unneeded string copying.
Posted by oldnewthing | 28 Comments
Filed under:

You can't escape those AOL CDs

They are downright everywhere.
Posted by oldnewthing | 15 Comments
Filed under:

Loading the dictionary, part 4: Character conversion redux

Character conversion is once again the bottleneck.
Posted by oldnewthing | 24 Comments
Filed under:

Loading the dictionary, part 3: Breaking the text into lines

Breaking the file into lines is taking a lot of time.
Posted by oldnewthing | 28 Comments
Filed under:

The Microsoft corporate network: 1.7 times worse than hell

The NCT packet stress test doesn't necessarily prepare you for the real world.
Posted by oldnewthing | 17 Comments
Filed under:

Loading the dictionary, part 2: Character conversion

Converting the file as we read it is taking a lot of time.
Posted by oldnewthing | 24 Comments
Filed under:

Loading the dictionary, part 1: Starting point

Sucking a file off the disk while converting its character set.
Posted by oldnewthing | 33 Comments
Filed under:

Developing a Chinese/English dictionary: Introduction

A change of style: Writing a complete program, in a bazillion little steps.
Posted by oldnewthing | 28 Comments
Filed under:

How to query properties of the taskbar

Use SHAppBarMessage
Posted by oldnewthing | 14 Comments
Filed under:

How do I cover the taskbar with a fullscreen window?

The taskbar detects that you created a fullscreen window and gets out of the way automatically.
Posted by oldnewthing | 44 Comments
Filed under:

When people ask for security holes as features: Stealing passwords

You can't get the user's password. You'd think that'd be obvious.

Managing the UI state of accelerators and focus rectangles

The three UI state messages: WM_CHANGEUISTATE, WM_QUERYUISTATE and WM_UPDATEUISTATE.
Posted by oldnewthing | 15 Comments
Filed under:

Another dead computer: My personal laptop

The continuing saga of dead computers.
Posted by oldnewthing | 33 Comments
Filed under: ,
 
Page view tracker