函数名没问题,可以编译,在进入运行后,使用该功能会中断运行,说在IDCard.dll中无法找到SDT_OpenPort的入口点?
[DllImport("IDCard.dll", EntryPoint = "SDT_GetCOMBaud", CharSet = CharSet.Ansi)]
<div><div> public static extern int SDT_GetCOMBaud(int iPort, ref uint puiBaudRate);</div><div> [DllImport("IDCard.dll", EntryPoint = "SDT_OpenPort", CharSet = CharSet.Ansi)]</div><div> public static extern int SDT_OpenPort(int iPort);</div><div> </div><div> [DllImport("IDCard.dll", EntryPoint = "SDT_SetCOMBaud (int iPort, uint uiCurrBaud, uint uiSetBaud)SDT_OpenPort", CharSet = CharSet.Ansi)]</div><div> public static extern int SDT_SetCOMBaud(int iPort);</div><div> [DllImport("IDCard.dll", EntryPoint = "SDT_ClosePort", CharSet = CharSet.Ansi)]</div><div> public static extern int SDT_ClosePort(int iPort);</div></div><div></div>
|