"Francois Gouget" fgouget@free.fr wrote:
Why bother with ifdefs and duplicating a lot of code if the static initializers work? I must still be missing something.
There is at least one huge disadvantage of a static initializer: it always consumes memory, used it or not. Just do #include <windows.h>, compile and see the result.