Showing results for 2007 - Page 46 of 46 - The Old New Thing

Jan 10, 2007
Post comments count0
Post likes count0

How do I load an entire file into a rich text control?

Raymond Chen
Raymond Chen

To load an entire file into a rich text control, you can use the message, which accepts an of data all at once. Once you find the message, it's pretty straightforward how to use it, but I'll write out the code anyway; You pretty much follow your nose. The message wants you to tell it the format of the stream () and provide a pointer to an s...

Code
Jan 9, 2007
Post comments count0
Post likes count0

Article of clothing or tasty dessert?

Raymond Chen
Raymond Chen

Balaclava or baklava? I always get the two confused, and I have to stop and think. "Why were the bank robbers covered in a tasty dessert?" "Who wants to eat a hooded knit cap?"

Non-Computer
Jan 9, 2007
Post comments count0
Post likes count0

What triggers the recall of an offline file?

Raymond Chen
Raymond Chen

Hierarchical storage management is one of the taxes software developers have to pay. What can you safely do to an offline file? What will trigger its recall? (First, a note on terminology: Recalling a file means to restore it from remote storage to local storage. A file that has been recalled is online; a file that has been placed on remote stora...

Code
Jan 8, 2007
Post comments count0
Post likes count0

Why do property sheets sometimes take a first-chance exception?

Raymond Chen
Raymond Chen

Reader cmonachan asked why can cause a first-chance exception. This is mentioned in Knowledge Base article 158552. But why take the exception in the first place? First off, let's take MFC out of the picture. The first-chance exception is coming from the property sheet manager. MFC is just the middle-man. Okay, so why the first-chance exception...

History
Jan 5, 2007
Post comments count0
Post likes count0

What('s) a character!

Raymond Chen
Raymond Chen

Norman Diamond seems to have made a side career of harping on this topic on a fairly regular basis, although he never comes out and says that this is what he's complaining about. He just assumes everybody knows. (This usually leads to confusion, as you can see from the follow-ups.) Back in the ANSI days, terminology was simpler. Windows opera...

Code
Jan 3, 2007
Post comments count0
Post likes count0

Wait, but why can I GetProcAddress for IsDialogMessage?

Raymond Chen
Raymond Chen

Okay, so I explained that a lot of so-called functions are really redirecting macros, function-like macros, intrinsic functions, and inline functions, and consequently, won't actually get anything since the function doesn't exist in the form of an exported function. But why, then, can you for ? Let's take a closer look at the exports from . H...

History
Jan 2, 2007
Post comments count0
Post likes count0

Why can't I GetProcAddress for CreateWindow?

Raymond Chen
Raymond Chen

Occasionally, I'll see people having trouble trying to for functions like or . Usually, it's coming from people who are trying to write p/invoke signatures, for p/invoke does a under the covers. Why can't you for these functions? Because they're not really functions. They're function-like macros: In fact, as you can see above is doubly a...

Code
Jan 1, 2007
Post comments count0
Post likes count0

The family technical support department: Everything is Outlook

Raymond Chen
Raymond Chen

We're all in the same position. Since we work with computers all day, everybody in the extended family considers us the technical support department. One thing you all need to take away from your role as family technical support department is that normal people view computers completely differently from the way you and I do. One of my relatives ca...

Other