Compiler Error C2388
'symbol' : a symbol cannot be declared with both __declspec(appdomain) and __declspec(process)
The appdomain
and process
__declspec
modifiers cannot be used on the same symbol. The storage for a variable exists per process or per application domain.
For more information, see appdomain and process.
The following sample generates C2388:
// C2388.cpp
// compile with: /clr /c
__declspec(process) __declspec(appdomain) int i; // C2388
__declspec(appdomain) int i; // 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