日期:2014-05-20  浏览次数:20908 次

C#数据类型的问题紧急
有DLL中函数如下
int   IFV_Verify(unsigned   char   *   pFeatureS,   unsigned   int   nSizeOfS,   unsigned   char   *   pFeatureT,   unsigned   int   nSizeOfT,   int   nLevel);
怎么转化成C#中的数据类型谢谢。

------解决方案--------------------
public static extern Int32 IFV_Verify(string pFeatureS, int nSizeOfS, string pFeatureT, int nSizeOfT, int nLevel);

如果不行,再把int n改成uint试一试!

------解决方案--------------------
using System.Runtime.InteropService;
[DllImport( "dllname.dll ")]
public static extern int IFV_Verify(string pFeatureS, int nSizeOfS, string pFeatureT, int nSizeOfT, int nLevel);