Compiler Error C2349

'function' cannot be compiled as managed: 'reason'; use #pragma unmanaged

For more information see Compiler Warning (level 1 and 3) C4793.