|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.|
Compiler Warning C4936
Error Messagethis __declspec is supported only when compiled with /clr or /clr:pure
A __declspec modifier was used but that __declspec modifier is only valid when compiled with one of the /clr options.
C4936 is always issued as an error. You can disable C4936 with thepragma.
The following sample generates C4936:
// C4936.cpp // compile with: /c // #pragma warning (disable : 4936) __declspec(process) int i; // C4936 __declspec(appdomain) int j; // C4936