Skip to content

Latest commit

 

History

History
28 lines (23 loc) · 680 Bytes

compiler-warning-level-1-c4817.md

File metadata and controls

28 lines (23 loc) · 680 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Warning (level 1) C4817
Compiler Warning (level 1) C4817
11/04/2016
C4817
C4817
a68f5486-6940-4934-9f93-bfd4d71f92a9

Compiler Warning (level 1) C4817

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

The wrong member access operator was used.

Example

The following sample generates C4817.

// C4817.cpp
// compile with: /clr /W1
using namespace System;
int main() {
   array<Int32> ^ a = gcnew array<Int32>(100);
   Console::WriteLine( a.Length );   // C4817
   Console::WriteLine( a->Length );   // OK
}