WTL initialization, Com and C++ namespaces


[May 11th, 2006]

Recently I was thinking what should be my first code contribution to the WTL project? And here it is: an seemingly simple COM initialization mechanism.

Why “seemingly simple” ? Because it is done with the healthy dose of using the C++ anonymous namespace, in order to make it (completely) transparent, but still (very) effective solution.

I do particularly like these ‘invisible’ C++ constructs actually doing a useful job.  Enough of theory, here is the practice (aka “the code”) :

Do your C++ reality check…


[April 19th, 2006]

Recently while having some discussions on a forum populated with very good C++ developers, I started to realise …

Many of them do not see the reality same as I do? Most of the discussions are simply because of reality checks that developers have to do all the time. Especailly if they are in this IT industry where constant change is the name of the game.

Simple example : STL. Discusion exploded arround the issue of using or not using the STL in the code? A drastic example of an reality check missing. Here is why:

  1. STL does not exist any more. At least two years.
  2. STL is replaced with stdlib : standard library for C++
  3. Standard C++ has stdlib at its core. It is based on stdlib.

Three points from the reality of C++ today. Have you done your C++ reality check, yet 🙂 ?