Compiler Error C3280
'class' : a member-function of a managed type cannot be compiled as an unmanaged function
Managed class member functions cannot be compiled as unmanaged functions.
The following sample generates C3280:
// C3280_2.cpp
// compile with: /clr
ref struct A {
void func();
};
#pragma managed(push,off)
void A::func() // C3280
{
}
#pragma managed(pop)
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