Click to See Complete Forum and Search --> : Compiler Error C2825: cannot form a qualified name, NEEDS EXPLAINING


eladho
March 25th, 2003, 04:31 AM
Taken from Microsoft's .NET help:
--------------------------------------------------------------
An unsuccessful attempt was made to form a qualified name.

For example, make sure that your code does not contain a function declaration where the function name begins with ::.

The following sample generates C2825:

// C2825.cpp
typedef int i;
int main() {
int* p = new int;
p->i::i(); // C2825
// try the following line instead
// p->i::~i();
}
--------------------------------------------------------------
Can someone be so kind to explain this to me in plain English ?