Showing archive results for January 2004

Jan 12, 2004
Post comments count0
Post likes count0

Why can't I GetProcAddress a function I dllexport'ed?

Raymond Chen

The dllexport attribute tells the linker to generate an export table entry for the specified function. This export entry is decorated. This is necessary to support ing of overloaded functions. But it also means that the string you pass to needs to be decorated. As we learned earlier, the decoration scheme varies from architecture to architectur...

Code
Jan 11, 2004
Post comments count0
Post likes count0

What's old is new again… well it's still old

Raymond Chen

The wonderful people who ran blogs.gotdotnet.com, as a parting gift, migrated all the old content into this blog. They're awesome, aren't they?

Other
Jan 11, 2004
Post comments count0
Post likes count0

Is there an exclusionary rule in Sweden?

Raymond Chen

According to Friday's Klartext (note: link valid only for one week, then it gets overwritten by the next Friday's Klartext), Vi ska börjar klartext med berätta att en åklagare nu ska undersöka om fler än två hundra poliser i Sverige har brutit mot lagen. Poliserna letade rätt på information om mordet p&a...

Non-Computer
Jan 9, 2004
Post comments count0
Post likes count1

Why do member functions need to be "static" to be used as a callback?

Raymond Chen

As we learned yesterday, nonstatic member functions take a secret "this" parameter, which makes them incompatible with the function signature required by Win32 callbacks. Fortunately, nearly all callbacks provide some way of providing context. You can shove the "this" pointer into the context so you can reconstruct the source object. Here's an ex...

History
Jan 9, 2004
Post comments count0
Post likes count0

Ten-year-old + Microsoft Flight Simulator = terrorist

Raymond Chen

Apparently a ten-year-old who put Microsoft Flight Simulator on his Christmas wish-list became the subject of a terrorism investigation. (Warning: I suspect that link will go stale in a week, so read it while you still can.) As always, The Register puts a snarky spin on the story.

Non-Computer
Jan 8, 2004
Post comments count0
Post likes count0

It's called "proofreading", give it a shot why don't you

Raymond Chen

Like everybody else, I was checking out the new MSN home page and I clicked over to the tour. And right there as their top headline in the sample web page, it says, "Wierd items of the future". Ahem. It's spelled w-e-i-r-d. And on all of the MSN properties, like local city guides, you can see MSN's new motto: "More Useful Everyday". Um, another spe...

Other
Jan 8, 2004
Post comments count0
Post likes count4

The history of calling conventions, part 3

Raymond Chen

Okay, here we go: The 32-bit x86 calling conventions. (By the way, in case people didn't get it: I'm only talking in the context of calling conventions you're likely to encounter when doing Windows programming or which are used by Microsoft compilers. I do not intend to cover calling conventions for other operating systems or that are specific to a...

History
Jan 8, 2004
Post comments count0
Post likes count0

Budget cuts strike Swedish radio

Raymond Chen

Alas, budget cuts over at Sveriges Radio have reduced the staff of Klartext, the Swedish news program presented in easy Swedish, from three to two, so they won't be able to provide text summaries of the radio show. I had been using the summaries to help me fill in the gaps I had missed, but now I guess I'll just have to listen even more closely. I...

Other
Jan 7, 2004
Post comments count0
Post likes count2

The history of calling conventions, part 2

Raymond Chen

Foreshadowing: This information will actually be useful in a future discussion. Well, not the fine details, but you may notice something that explains... um... it's hard to describe. Just wait for it. Curiously, it is only the 8086 and x86 platforms that have multiple calling conventions. All the others have only one! Now we're going deep into t...

History
Jan 7, 2004
Post comments count0
Post likes count0

Words I'd like to ban in 2004

Raymond Chen

It seems to be fashionable to do a "top words" list this time of year. We have Google 2003 Zeitgeist, Top Yahoo! Searches 2003, Merriam-Webster's Words of the Year for 2003, YourDictionary.com's Top Ten Words of 2003, Lake Superior State University's Banished Words List for 2004; still waiting for the American Dialect Society's choice for Word of ...

OtherMicrospeak