Public Declare Function
CVR_InitComm Lib "termb.dll" Alias "CVR_InitComm" (ByVal Port As Integer) As Integer '连接设备
Public Declare Function CVR_Authenticate Lib "termb.dll" Alias "CVR_Authenticate" () As Integer '验证身份证
Public Declare Function CVR_Read_Content Lib "termb.dll" Alias "CVR_Read_Content" (ByVal Active As Integer) As Integer '读取身份证信息
Public Declare Function CVR_CloseComm Lib "termb.dll" Alias "CVR_CloseComm" () As Integer '关闭设备
上边定义中 以第3句为例
两个CVR_Read_Content 各代表什么意思
第一个代表可以在其他地方引用的函数的名称?
第二个代表在dll 文件中的函数名称?
(ByVal active as Integer) 代表什么意思
函数需要一个整数类型的参数?
As Integer
返回一个整数?
ByVal 与 ByRef 各用在什么情况下比较好