[DllImport("IDCard.dll", EntryPoint = "SDT_GetCOMBaud", CharSet = CharSet.Ansi)]
public static extern int SDT_GetCOMBaud(int iPort, ref uint puiBaudRate);
[DllImport("IDCard.dll", EntryPoint = "SDT_OpenPort", CharSet = CharSet.Ansi)]
public static extern int SDT_OpenPort(int iPort);
[DllImport("IDCard.dll", EntryPoint = "SDT_SetCOMBaud (int iPort, uint uiCurrBaud, uint uiSetBaud)SDT_OpenPort", CharSet = CharSet.Ansi)]
public static extern int SDT_SetCOMBaud(int iPort);
[DllImport("IDCard.dll", EntryPoint = "SDT_ClosePort", CharSet = CharSet.Ansi)]
public static extern int SDT_ClosePort(int iPort);
private void button4_Click(object sender, EventArgs e)
{
IDCardData CardMsg = new IDCardData();
int nRet, nPort;
string stmp;
byte[] cPath = new byte[255];
byte[] pucIIN = new byte[4];
byte[] pucSN = new byte[8];
nPort = m_iPort;
if (SDT_OpenPort(nPort) == 0)
}
哪位指点下迷津,究竟是哪里除了问题