在调用时加入参数CallingConvention即可 [DllImport("GbReader.DLL", CallingConvention = CallingConvention.Cdecl)] 如图: