C#读取二代身份证(精伦IDR200)ReadBaseInfos返回 4 是什么原因造成的
privatestaticexternintReadBaseInfos(StringBuilderName,StringBuilderGender,StringBuild...
private static extern int ReadBaseInfos(StringBuilder Name, StringBuilder Gender, StringBuilder Folk, StringBuilder BirthDay,
StringBuilder Code,StringBuilder Address, StringBuilder Agency, StringBuilder ExpireStart, StringBuilder ExpireEnd);
StringBuilder Name = new StringBuilder(31);
StringBuilder Gender = new StringBuilder(3);
StringBuilder Folk = new StringBuilder(10);
StringBuilder BirthDay = new StringBuilder(9);
StringBuilder Code = new StringBuilder(19);
StringBuilder Address = new StringBuilder(71);
StringBuilder Agency = new StringBuilder(31);
StringBuilder ExpireStart = new StringBuilder(9);
StringBuilder ExpireEnd = new StringBuilder(9);
int intReadBaseInfosRet = ReadBaseInfos(Name, Gender, Folk, BirthDay, Code, Address, Agency, ExpireStart, ExpireEnd); 展开
StringBuilder Code,StringBuilder Address, StringBuilder Agency, StringBuilder ExpireStart, StringBuilder ExpireEnd);
StringBuilder Name = new StringBuilder(31);
StringBuilder Gender = new StringBuilder(3);
StringBuilder Folk = new StringBuilder(10);
StringBuilder BirthDay = new StringBuilder(9);
StringBuilder Code = new StringBuilder(19);
StringBuilder Address = new StringBuilder(71);
StringBuilder Agency = new StringBuilder(31);
StringBuilder ExpireStart = new StringBuilder(9);
StringBuilder ExpireEnd = new StringBuilder(9);
int intReadBaseInfosRet = ReadBaseInfos(Name, Gender, Folk, BirthDay, Code, Address, Agency, ExpireStart, ExpireEnd); 展开
2014-08-10
展开全部
首先 确认下调用此方法之前有没有调用InitComm进行设备初始化
其次 感觉他们做的ReadBaseInfos函数有些问题 我当初做对接的时候 多次尝试调用ReadBaseInfos总是出各种各样的问题 给厂家打电话 他们也说不清楚为什么 他们让我调用ReadBaseMsg然后截取字符串试试 结果一次就成功了
其次 感觉他们做的ReadBaseInfos函数有些问题 我当初做对接的时候 多次尝试调用ReadBaseInfos总是出各种各样的问题 给厂家打电话 他们也说不清楚为什么 他们让我调用ReadBaseMsg然后截取字符串试试 结果一次就成功了
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询