Edit

Share via


Compiler Error C2165

'keyword' : cannot modify pointers to data

Remarks

The __stdcall, __cdecl, or __fastcall keyword attempts to modify a pointer to data.

Example

The following example generates C2165:

// C2165.cpp
// compile with: /c
char __cdecl *p;   // C2165
char *p;   // OK