Add const to the member function. The following sample generates C2662: // C2662.cpp class C { public: void func1(); void func2() const{} } const c; int main() { c.func1(); // C2662 c.func2(); // OK } When compiling with/clr, you cannot call a function on a const o...