I have a static method, MyClass::myMethod() in another DLL, MyDll.dll . In my code, I call this method, and it compiles and works fine.
But when I try MyClass::myMethod() in the immediate window (or viewport), I always get:
MyClass::myMethod() CXX0052: Error: member function not present
Why is this?
Update . I found out that when I use the context operator it works:
{,,MyDLL}MyClass::myMethod()
I'm not quite sure why this is necessary, so I'll wait a bit to see if anyone has a good explanation.
Update 2 : I was asked for more information. Unfortunately, I have described almost everything that I have. This is in third-party code. A method that resides in another DLL is declared as follows:
class MyClass { public: // ... _declspec(dllimport) static const char *getDirectory(void); }
and it is invoked as follows:
MyClass::getDirectory ()
I have no source. It was compiled in debug mode in VC ++ 9.
c ++ debugging visual-c ++
Pedro d'quino
source share