Интегрированное устройство crosspatch с формой C#
I'm trying to integrate with crossmatch device (PATROL ID) using C# I have a problem when I want to Get Device count , all time I have( -1) value " it's means invalid parameter"
Что я уже пробовал:
Мой код в форме загрузки :
int devices = 0; int stat = VeriferNativeMethods.LSCAN_Main_GetDeviceCount(devices); MessageBox.Show(stat.ToString());
-------------------------------------------------
загрузите ddl в другой класс (
VeriferNativeMethods) :
const string DllName = "LScanEssentials.dll";
[DllImport(DllName, EntryPoint = "LSCAN_Main_GetDeviceCount")] public static extern int LSCAN_Main_GetDeviceCount(int DCount);