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

Compiler Warning C4936

Error Message

this __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.

For more information, see appdomain and process.

C4936 is always issued as an error. You can disable C4936 with the warning pragma.

The following sample generates C4936:

// C4936.cpp
// compile with: /c
// #pragma warning (disable : 4936)
__declspec(process) int i;   // C4936
__declspec(appdomain) int j;   // C4936
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.