Hi,
if I encapsulate a static variable in VS2005 C++ then the generated member functions are not static. Thus, encapsulating
    static bool _foo;
will lead to
    bool getFoo() const { return _foo; }
    void setFoo(bool val) { _foo = val; }
but correct is
    static bool getFoo() { return _foo; }
    static void setFoo(bool val) { _foo = val; }
(static methods and no const).
Regards, tv