Latest posts
Apr 14, 2026
Post comments count 2
Post likes count 1
Why was there a red telephone at every receptionist desk?
Raymond Chen
Not a direct line to Bill Gates's office.
Apr 13, 2026
Post comments count 4
Post likes count 1
Finding a duplicated item in an array of N integers in the range 1 to N − 1
Raymond Chen
Taking advantage of special characteristics of the array.
Apr 10, 2026
Post comments count 3
Post likes count 2
How do you add or remove a handle from an active WaitForMultipleObjects?, part 2
Raymond Chen
Waiting for the waiting thread to acknowledge the change.
Apr 9, 2026
Post comments count 4
Post likes count 2
How do you add or remove a handle from an active WaitForMultipleObjects?
Raymond Chen
You can't, but you can cooperate with the other thread.
Apr 8, 2026
Post comments count 4
Post likes count 2
How do you add or remove a handle from an active MsgWaitForMultipleObjects?
Raymond Chen
You can't, but you can arrange for the waiter to do it for you.
Apr 7, 2026
Post comments count 9
Post likes count 6
Were there any Windows 3.1 programs that were so incompatible with Windows 95 that there was no point trying to patch them?
Raymond Chen
The permanently ineligible list.
Apr 6, 2026
Post comments count 3
Post likes count 2
Learning to read C++ compiler errors: Illegal use of -> when there is no -> in sight
Raymond Chen
If the compiler is complaining about things you didn't write, find out who wrote them.
Apr 3, 2026
Post comments count 3
Post likes count 2
How can I use ReadDirectoryChangesW to know when someone is copying a file out of the directory?
Raymond Chen
File copying is not a fundamental operation, nor is it even detectable at the file system layer.
Apr 2, 2026
Post comments count 0
Post likes count 4
Why doesn’t the system let you declare your own messages to have the same semantics as WM_COPYDATA ?
Raymond Chen
Tempting but misleading.