Posts by this author

Jul 20, 2006
Post comments count0
Post likes count0

Buy me some peanuts and a set of double-pointed 2's

It's the second annual Stitch 'n Pitch at Safeco Field. Stitch n' Pitch events for other cities can be found on the Stitch n' Pitch web site. (Channeling Lynne Truss: Ahem, people, the spelling of the middle word is 'n' with an apostrophe fore and aft.) [10am: Fixed sepleling.] Seattle Times readers Dave Butner and Mike Wilson took issue with ...

Non-Computer
Jul 20, 2006
Post comments count0
Post likes count0

Rethinking the way DLL exports are resolved for 32-bit Windows

Over the past few days we've learned how 16-bit Windows exported and imported functions from DLLs and that the way functions are exported from 32-bit DLLs matches the 16-bit method reasonably well. But the 16-bit way functions are imported simply doesn't work in the 32-bit world. Recall that in 16-bit Windows, the fixups for an imported functio...

Other
Jul 19, 2006
Post comments count0
Post likes count0

The traffic gods are punishing me for bicycling

It happened again. The last time I participated in a bicycle ride that started in Seattle, I got stuck in highway traffic both going out and coming back. The 520 bridge was closed for inspection so everybody was taking the I-90 bridge instead. But traffic at the western terminal of I-90 was backed up because the Alaska Way Viaduct was closed for...

Non-Computer
Jul 19, 2006
Post comments count0
Post likes count0

Exported functions that are really forwarders

Last time, we saw how the way Win32 exports functions is pretty much the same as the way 16-bit Windows exports functions, but with a change in emphasis from ordinal-based exports to name-based exports. This change in emphasis is not expressed anywhere in the file format; both 16-bit and 32-bit DLLs can export either by name or by ordinal (or by ...

Other
Jul 18, 2006
Post comments count0
Post likes count0

How are DLL functions exported in 32-bit Windows?

The designers of 32-bit Windows didn't have to worry quite so much about squeezing everything into 256KB of memory. Since modules in Win32 are based on demand-paging, all you have to do is map the entire image into memory and then run around accessing the parts you need. There is no distinction between resident and non-resident names; the names of ...

Other
Jul 17, 2006
Post comments count0
Post likes count0

The day the peloton lost its way

It's the one time a year that more than fifty people in the United States actually give a hoot about bicycle racing. Yes, it's the Tour de France. (Follow the racers live via GPS!) But this story isn't about the Tour. It's about Stage 4 of the 2005 ENECO Tour. You can follow along with the live report. Everything was going pretty much like ...

Non-Computer
Jul 14, 2006
Post comments count0
Post likes count0

How were DLL functions exported in 16-bit Windows?

The whole point of dynamic link libraries (DLLs) is that the linkage is dynamic. Whereas statically-linked libraries are built into the final product, a module that uses a dynamically-linked library merely says, "I would like function X from Y.DLL, please." This technique has advantages and disadvantages. One advantage is more efficient use of stor...

History
Jul 13, 2006
Post comments count0
Post likes count0

Glass houses are great places to throw stones

Whenever I write an article explaining that programs should avoid doing X, I can confidently rely on a comment saying, "Well, Microsoft Product Q does this!" as if to say, "Gotcha, you hypocrite!" But they're saying "gotcha" to the wrong person. Because, and I'm sure it's a shock to many people to read this, I did not personally wr...

Other
Jul 12, 2006
Post comments count0
Post likes count0

Win $5000 every summer for life (some restrictions on your life apply)

Back in 2003, M&M offered a chance to win $5000 every summer for life, but if you looked more carefully, the offer actually read, "Win $5000 Every Summer For Life*", and the asterisk at the bottom read, "Maximum 50 years". That fine print was filled with strange stuff. For example, 3. Sponsor responsible only for delivery of prize; not respon...

Non-Computer