Saturday, August 30, 2008

Polymorphism in C

Many people mistakenly believe that polymorph ism has to be done in a OO language, such as C++.
Where it is true that C++ gives a quite straightforward implement, one might be shocked to find out that procedure language may have some advantages.

The techniques are not newly invented. It has been existed for more than a decade. For example, in Windows GDI, a DC represents a output device.

Tuesday, March 18, 2008

std::iostream adaptor for com::IStream interface

I am working on a C++ library that uses std::iostream for all kinds of IO. Now I finished it and started to add a COM wrapper above it. One of the issues is to convert IStream into std::istream. At the first glance, it is not easy since istream has a dozen methods.

Monday, January 28, 2008

My office photo


Taken in 2005, almost three years ago.