C++中long是32位的整数类型。 而在C#中 long是64位的,对应包装类型是Int64,int对应Int32。 显然C++中的long类型,而应该对应C#中的int, C#调用C++的DLL时应特别注意,程序 无故退出是由于C++产生了异常,C#中无法捕获。 转载于:https://www.cnblogs.com/xinhuan/p/4841168.html