Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
'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.