Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

Compiler Warning (level 1) C4817

'member' : cannot use '.' to access this member; compiler replaced with '->'

The wrong member access operator was used.

The following sample generates C4817:

// C4817.cpp
// compile with: /clr /W1
#using <mscorlib.dll>
using namespace System;
int main() {
   Int32 a[] = new Int32[11];
   Console::WriteLine( a.Length );
   // Console::WriteLine( a->Length );
}
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.