Compiler Error C2165
'keyword' : cannot modify pointers to data
The __stdcall
, __cdecl
, or __fastcall
keyword attempts to modify a pointer to data.
The following sample generates C2165:
// C2165.cpp
// compile with: /c
char __cdecl *p; // C2165
char *p; // OK
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for