As mentioned in Dane Rose’s comment, you can either use __stdcall
on your C++ function or declare CallingConvention = CallingConvention.Cdecl
on your DllImport
.
As mentioned in Dane Rose’s comment, you can either use __stdcall
on your C++ function or declare CallingConvention = CallingConvention.Cdecl
on your DllImport
.