Showing results for May 2004 - Page 4 of 5 - The Old New Thing

May 11, 2004
0
0

How do the FILE_SHARE_* bits interact with the desired access bits?

Raymond Chen
Raymond Chen

It's really not that complicated. If you permit, say, , then you're saying, "I'm okay with other people reading this file while I have it open." And if you leave off the flag, then you're saying, "I do not want other people reading this file while I have it open." Now all that's left to do is work out what that means. So suppose you omit t...

Code
May 11, 2004
0
0

Links about COM threading models

Raymond Chen
Raymond Chen

There have been a few good articles about threading models, one from Eric Lippert and another from Larry Osterman. Go off and read them if you haven't already.

Code
May 10, 2004
0
0

A guide to British pub etiquette

Raymond Chen
Raymond Chen

Social researchers dissect the interactions and unveil the unwritten rules that govern British pub etiquette.

Non-Computer
May 10, 2004
0
0

There are two types of scrollbars

Raymond Chen
Raymond Chen

Remember that there are two types of scrollbars. One is the standalone scrollbar control. This one has its own window handle, and consequently can be given focus and all those other fun things you can do with window handles. To manipulate them, pass the handle to the scrollbar control to the appropriate scrollbar function (SetScrollInfo, fo...

Code
May 7, 2004
0
0

Image File Execution Options

Raymond Chen
Raymond Chen

Hereby incorporating by reference Junfeng Zhang's discussion of the Image File Execution Options registry key.

Other
May 7, 2004
0
0

Batman and Robin patrolling Whitley

Raymond Chen
Raymond Chen

Batman and Robin have been spotted in Whitley, providing valuable services like rescuing damsels in distress (pushing her car to the nearest petrol station), scaring away potential muggers, and even chasing streakers off a football pitch.

Non-Computer
May 7, 2004
0
0

When should your destructor be virtual?

Raymond Chen
Raymond Chen

When should your C++ object's destructor be virtual? First of all, what does it mean to have a virtual destructor? Well, what does it mean to have a virtual method? If a method is virtual, then calling the method on an object always invokes the method as implemented by the most heavily derived class. If the method is not virtual, then the implem...

Code
May 6, 2004
0
0

Scripting is a two-edged sword

Raymond Chen
Raymond Chen

A three line VB script will disable your firewall. The advantage of scripting is that you can control so many things with just a few lines of code. The disadvantage of scripting is that bad people can control so many things with just a few lines of code. I wonder how long it will be before there's a virus that disables the firewall.

Other
May 6, 2004
0
0

Chris Pratley's history lesson

Raymond Chen
Raymond Chen

If you haven't read it yet, check out Chris Pratley's voluminous discourse on various aspects of the history of Word. It packs more history into one entry than I do all year. And that was a sequel! You can read the first half, too. In fact, the good stuff keeps on coming. just read it all.

History