Compiler Warning (level 1) C4830 (Windows CE 5.0)

Windows CE 5.0
Send Feedback

'class' : to access a member of a 'managed' class or interface please use '.', not '->'

Access to members of a managed class is through the . operator not the -> operator. Your code was compiled as if the . operator was used.

For example, the following managed code generates C4830:

#import <mscorlib.dll>
class X {
public:
   void mf() { }
};

void f() {
    X pX;
// X pX = 0;

   pX->mf();// C4830..should be pX.mf();
}

void main () { 
f();
}

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.


Show: