各位大师,有个问题请教各位。
关于身份证阅读器,厂家提供的API跟范例的不太一样,不是通过wz.txt来存储身份证信息,而是通过其他的API函数来提取。
如:
int GetPeopleName(char *strTmp, int *strLen) 得到姓名信息
int GetPeopleSex(char *strTmp, int *strLen) 得到性别信息
int GetPeopleNation(char *strTmp, int *strLen) 得到民族信息
int GetPeopleBirthday(char *strTmp, int *strLen) 得到出生日期
......
参数:
*strTmp 返回的信息缓存指针。
*strLen 返回的信息长度指针。
想这样的API函数我该如何声明和调用?翻帮助手册没有查到,尝试了几次都报错。
请大师帮助!谢谢!
这是我尝试的声明和调用,报错了。
Public Declare Function GetPeopleName Lib "termb.dll" Alias "GetPeopleName" (ByVal strTmp As String, ByVal strLen As Integer) As Integer '得到姓名信息
Dim ls_Name As String
Dim i As Integer
Dim j As Integer
i = GetPeopleName(ls_name,j)
messagebox.show(i & " - " & j)
返回 0 - 0