原dll说明:
函 数 原 型 :int  WINAPI  TtSaveFingerToFile(unsigned  char*FingerBuf,char*strFingerName);
函数功能:把内存中的图像保存到 bmp 文件中。
函数参数:FingerBuf-存放指纹图像数据的缓冲区,缓冲区大小 304*256Byte。
strFingerName-指纹文件名称,如 C:\finger.bmp。
返回值: 成功返回 1,失败返回 0。导入:
[DllImport("MXOTDLL.dll", EntryPoint = "TtSaveFingerToFile", CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)]
public static extern int MXSaveFingerToFile(byte[] FingerBuf, string FilePath);调用:
string FilePath= "c:\finger.bmp";
MXSaveFingerToFile(FingerBuf,FilePath);问题:我是把算把缓冲区的图像保存到c:\finger.bmp,函数返回1,但c:\始终没有 finger.bmp这文件,请各位前辈指点下,估计是什么原因?