Compiler Error C3295
'#pragma pragma' can only be used at global or namespace scope
Some pragmas cannot be used in a function. See Pragma Directives and the __Pragma Keyword for more information.
Example
The following sample generates C3295.
// C3295.cpp
int main() {
#pragma managed // C3295
}
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