Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » Code   (RSS)

If you have to cast, you can't afford it

Casts are the source of most alignment problems.
Posted by oldnewthing | 41 Comments
Filed under:

Important window message numbers to memorize

You probably know them already.
Posted by oldnewthing | 11 Comments
Filed under:

Don't use global state to manage a local problem, practical exam

Changing application settings for a single worksheet.
Posted by oldnewthing | 3 Comments
Filed under: ,

LoadString can load strings with embedded nulls, but your wrapper function might not

Check that those double-null-terminated strings really are.
Posted by oldnewthing | 14 Comments
Filed under:

What is the format of a double-null-terminated string with no strings?

It's just a single null terminator.
Posted by oldnewthing | 31 Comments
Filed under:

The ways people mess up IUnknown::QueryInterface, episode 3

An example of how it causes problems.
Posted by oldnewthing | 20 Comments
Filed under:

Why do messages posted by PostThreadMessage disappear?

The only thread message you can meaningfully post to a thread displaying UI is WM_NULL.
Posted by oldnewthing | 8 Comments
Filed under:

The COM marshaller uses the COM task allocator to allocate and free memory

If you are allocating memory for COM to free, you need to use the COM task allocator.
Posted by oldnewthing | 17 Comments
Filed under:

If you're handling an out of memory exception, you probably shouldn't allocate memory

Encountering the same problem you're trying to report.
Posted by oldnewthing | 14 Comments
Filed under:

Reading the error message carefully can help you see how the computer misinterpreted what you typed

Look carefully at what the error message complaining about; it may not be what you expect.
Posted by oldnewthing | 17 Comments
Filed under:
More Posts Next page »
 
Page view tracker