Compiler Error C3645
Visual Studio 2015
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at Compiler Error C3645.
function' : __clrcall cannot be used on functions compiled to native code
The presence of some keywords in a function will cause the function to be compiled to native.
The following sample generates C3645.
// C3645.cpp
// compile with: /clr /c
#pragma unmanaged
int __clrcall dog() {} // C3645
Show: