vb中调用dll中的函数,无法获取返回的字符数组
有一个vc写的dd.dll中的函数
int gen_mcard(
unsigned char *in, //输入
unsigned char out[8], //输出
unsigned char ivec[8], //输入
unsigned char k[8],//输入
int len//输入
);
如果要在vb中调用,该如何在vb中申明呢??
Private Declare Function gen_mcard_mac Lib "dd.dll" _
(jstr1 As String, ByRef jstr2 As String, ByRef jstr3 As String, _
ByRef jstr4 As String, ByVal jlen As Long) _
As Integer
Dim jstr1 As String
Dim jstr2(16) As String
Dim jstr3(16) As String
Dim jstr4(16) As String
Dim jlen As Long
jstr3(0) = "0"
jstr3(1) = "0"
jstr3(2) = "0"
jstr3(3) = "0"
jstr3(4) = "0"
jstr3(5) = "0"
jstr3(6) = "0"
jstr3(7) = "0"
jstr3(8) = "0"
jstr3(9) = "0"
jstr3(10) = "0"
jstr3(11) = "0"
jstr3(12) = "0"
jstr3(13) = "0"
jstr3(14) = "0"
jstr3(15) = "0"
'E5ECC87CD31A517C
jstr4(0) = "E"
jstr4(1) = "5"
jstr4(2) = "E"
jstr4(3) = "C"
jstr4(4) = "C"
jstr4(5) = "8"
jstr4(6) = "7"
jstr4(7) = "C"
jstr4(8) = "D"
jstr4(9) = "3"
jstr4(10) = "1"
jstr4(11) = "A"
jstr4(12) = "5"
jstr4(13) = "1"
jstr4(14) = "7"
jstr4(15) = "C"
jm = gen_mcard_mac(jstr1, jstr2(0), jstr3(0), jstr4(0), jlen)
jstr2无返回信息!!何解??