日期:2014-05-17 浏览次数:20899 次
//打开USB读卡器端口 int port = 100; IniPort(port); TSSCInfo info = new TSSCInfo(); IntPtr ptr = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(TSSCInfo))); Marshal.StructureToPtr(info, ptr, false); int rtnVal = rdInfo_SSCID(ptr); info = (TSSCInfo)Marshal.PtrToStructure(ptr, typeof(TSSCInfo)); string ylzh = System.Text.Default.UTF32.GetString(info.SSCID);
string ylzh = System.Text.ASCIIEncoding.GetEncoding("gb2312").GetString(info.SSCID);