Showing results for July 2005 - Page 2 of 4 - The Old New Thing

Jul 20, 2005
0
0

The Northwest Mahler Festival performs Mahler’s Second Symphony (“Resurrection”)

Raymond Chen
Raymond Chen

Last night I attended the Northwest Mahler Festival's performance of Mahler's Second Symphony (The Resurrection). The concert opened with Copland's El Salón México and Barber's Prayers of Kierkegaard. [Typo fixed 12:30pm] The Copland was kind of shaky, in a way that I couldn't quite put a finger on. The wind balance seemed a bit of...

Non-Computer
Jul 20, 2005
0
0

Why does FindFirstFile find short names?

Raymond Chen
Raymond Chen

The function matches both the short and long names. This can produce somewhat surprising results. For example, if you ask for "*.htm", this also gives you the file "x.html" since its short name is "X~1.HTM". Why does it bother matching short names? Shouldn't it match only long names? After all, only old 16-bit programs use short names. But t...

History
Jul 19, 2005
0
0

What is the deal with the ES_OEMCONVERT flag?

Raymond Chen
Raymond Chen

The edit control style is a holdover from 16-bit Windows. This ancient MSDN article from the Windows 3.1 SDK describes the flag thus: ES_OEMCONVERT causes text entered into the edit control to be converted from ANSI to OEM and then back to ANSI. This ensures proper character conversion when the application calls the AnsiToOem function to conve...

History
Jul 18, 2005
0
0

Watching the game of “Telephone” play out on the Internet

Raymond Chen
Raymond Chen

Let's see if I can get this straight. First, Chris Pirillo says (timecode 37:59) he's not entirely pleased with the word "podcast" in Episode 11 of This Week in Tech. The Seattle-PI then reports that the sentiment is shared with "several Microsoft employees" who have coined the word "blogcast" to replace it. Next, c|net picks up the story and ...

Other
Jul 18, 2005
0
0

If InitCommonControls doesn’t do anything, why do you have to call it?

Raymond Chen
Raymond Chen

One of the problems beginners run into when they start using shell common controls is that they forget to call the function. But if you were to disassemble the function itself, you'll see that it, like the function, doesn't actually do anything. Then why do you need to call it? As with , what's important is not what it performs, but just ...

History
Jul 14, 2005
0
0

When Marketing edits your PDC talk description

Raymond Chen
Raymond Chen

A few years ago, I told a story of how Marketing messed up a bunch of PDC slides by "helpfully" expanding acronyms... into the wrong phrases. Today I got to see Marketing's handiwork again, as they edited my talk description. (Oh, and psst, Marketing folks, you might want to link to the full list of PDC sessions from your Conference Tracks and S...

Other
Jul 13, 2005
0
0

Converting from traditional to simplified Chinese, part 3: Highlighting differences

Raymond Chen
Raymond Chen

One of the things that is interesting to me as a student of the Chinese languages is to recognize where the traditional and simplified Chinese scripts differ. Since this is my program, I'm going to hard-code the color for simplified Chinese script: maroon. To accomplish the highlighting, we take advantage of listview's custom-draw feature. Cus...

Code
Jul 12, 2005
0
0

Converting from traditional to simplified Chinese, part 2: Using the dictionary

Raymond Chen
Raymond Chen

Now that we have our traditional-to-simplified pseudo-dictionary, we can use it to generate simplified Chinese words in our Chinese/English dictionary. class StringPool { public: StringPool(); ~StringPool(); LPWSTR AllocString(const WCHAR* pszBegin, const WCHAR* pszEnd); LPWSTR DupString(const WCHAR* pszBegin) { return AllocString(pszBegi...

Code