Showing tag results for History

Mar 7, 2008
Post comments count0
Post likes count1

Why can't I convert a time zone abbreviation into a time zone?

Raymond Chen
Raymond Chen

Suppose you have a string of the form . How can you parse this into something your program can manipulate, like say a or a ? Basically, you can't in the general case. The time zone abbreviation CST is ambiguous. It could mean U.S./Canada Central Standard Time, Australian Central Standard Time, China Standard Time, or Cuba Summer Time. There ma...

HistoryTime
Feb 28, 2008
Post comments count0
Post likes count2

Why are process and thread IDs multiples of four?

Raymond Chen
Raymond Chen

On Windows NT-based operating systems, process and thread IDs happen always to be a multiple of four. Is this just a coincidence? Yes, it's just a coincidence, and you shouldn't rely on it since it is not part of the programming contract. For example, Windows 95 process and thread IDs were not always multiples of four. (By comparison, th...

History
Feb 11, 2008
Post comments count0
Post likes count1

Why does Ctrl+ScrollLock cancel dialogs?

Raymond Chen
Raymond Chen

Commenter Adam Russell asks why Ctrl+ScrollLock cancels dialogs. Easy. Because Ctrl+ScrollLock is the same as Ctrl+Break, and Ctrl+Break cancels dialogs. Okay, that answer actually raises two more questions. First, why is Ctrl+ScrollLock the same as Ctrl+Break? This is a consequence of the backward compatibility designed into the Enhanced Keyboa...

History
Feb 8, 2008
Post comments count0
Post likes count1

Why couldn't you have more than one instance of a 16-bit multi-DS program?

Raymond Chen
Raymond Chen

Recall that the identified a set of variables. This causes a bit of a problem if your program has multiple data segments; in other words, multiple sets of variables. In such a program, the code would load the data segment of whatever variable it needed each time it needed to access a variable from a different segment. This was no problem at all f...

History
Feb 7, 2008
Post comments count0
Post likes count1

What did MakeProcInstance do?

Raymond Chen
Raymond Chen

doesn't do anything. What's the point of a macro that doesn't do anything? It did something back in 16-bit Windows. Recall that in 16-bit Windows, the was the mechanism for identifying a data segment; i.e., a bunch of memory that represents the set of variables in use by a module. If you had two copies of Notepad running, there was one co...

History
Jan 22, 2008
Post comments count0
Post likes count2

The Windows 95 volume control almost went to eleven

Raymond Chen
Raymond Chen

The movie This Is Spinal Tap introduced the world to the phrase going to eleven. The people over at Windows Media Player were not immune to its charms, alluding to the catchphrase in their advertising campaign. Back in Windows 95, I know that there was at least one person who lobbied the multimedia team to give the Volume Control program e...

History
Jan 18, 2008
Post comments count0
Post likes count2

Why do registry keys have a default value?

Raymond Chen
Raymond Chen

In addition to all the named values you can create underneath a registry key with the function, there is also the so-called default value which you obtain by passing or a pointer to a null string as the . This default value is also the value set and retrieved when you call and . What's the deal with this default value? The original 16-bit regis...

History
Jan 17, 2008
Post comments count0
Post likes count1

How did registry keys work in 16-bit Windows?

Raymond Chen
Raymond Chen

Back in 16-bit Windows, the registry was a very different beast. Originally, the only registry hive was , and the only things it was used for were COM object registration and file type registration. (Prior to the registry, file type registration was done in , and the only verb you could register for was "open".) The registry was stored in a singl...

History