Compiler Error C3398
'operator' : cannot convert from 'function_signature' to 'function_pointer'. Source expression must be a function symbol
When the __clrcall calling convention is not specified when compiling with /clr, the compiler generates two entry points (addresses) for each function, a native entry point and a managed entry point.
By default the compiler returns the native entry point, but there are some cases where the managed entry point is desired (for instance when assigning the address to a __clrcall
function pointer). In order for the compiler to reliably choose the managed entry point in an assignment, the right hand side must be a function symbol.
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