本人一直在线!错误提示为 --->[
编译错误:
在该对像模块派生的对像模块中成员已存在。
]Private Declare Function Getdefurl Lib "uskydll.dll" (ByVal user_id As String, ByVal password As String, ByVal software As String, ByVal ver As String, ByVal group_id As String, ByVal Creditkey As String, ByRef userdata As String, ByRef errmsg As String) As IntegerPrivate Declare Function GenCR Lib "encrypt.dll" (ByVal user_id As String, ByVal password As String, ByVal software As String, ByVal ver As String, ByVal group_id As String) As StringPrivate Sub Close_Click() Me.Caption = "Test Service:Command -> Close"
End SubPrivate Sub TestSvc_Click()
Dim s1, s2, s3, s4, s5, s6, s7, s8 As String
Dim retval As Integer
Me.Text6.Text = GenCR(s1, s2, s3, s4, s5)
s1 = Me.Text1.Text
s2 = Me.Text2.Text
s3 = Me.Text3.Text
s4 = Me.Text4.Text
s5 = Me.Text5.Text
s6 = Me.Text6.Text
retval = Getdefurl(s1, s2, s3, s4, s5, s6, s7, s8)
Me.Label1.Caption = s7
Me.Label2.Caption = s8End Sub
编译错误:
在该对像模块派生的对像模块中成员已存在。
]Private Declare Function Getdefurl Lib "uskydll.dll" (ByVal user_id As String, ByVal password As String, ByVal software As String, ByVal ver As String, ByVal group_id As String, ByVal Creditkey As String, ByRef userdata As String, ByRef errmsg As String) As IntegerPrivate Declare Function GenCR Lib "encrypt.dll" (ByVal user_id As String, ByVal password As String, ByVal software As String, ByVal ver As String, ByVal group_id As String) As StringPrivate Sub Close_Click() Me.Caption = "Test Service:Command -> Close"
End SubPrivate Sub TestSvc_Click()
Dim s1, s2, s3, s4, s5, s6, s7, s8 As String
Dim retval As Integer
Me.Text6.Text = GenCR(s1, s2, s3, s4, s5)
s1 = Me.Text1.Text
s2 = Me.Text2.Text
s3 = Me.Text3.Text
s4 = Me.Text4.Text
s5 = Me.Text5.Text
s6 = Me.Text6.Text
retval = Getdefurl(s1, s2, s3, s4, s5, s6, s7, s8)
Me.Label1.Caption = s7
Me.Label2.Caption = s8End Sub
解决方案 »
- (急)怎么将字符串中的某几位转换为整数???
- 存放在数据库中的图片如何在VB中显示出来(不通过产生临时文件方法)
- 如何让LISTVIEW中可以使用鼠标滚轮控制SCROLLBAR,如何选择标题列使得选中列的CHECKBOX全选。
- 多表同时更新数据如何实现
- 为什么我的OLEDB Provider不好用了?如何解决?
- 先删除再addnew的问题,急???
- 问各位大侠一个问题,操作excel的,请指点。
- VBA如何在WORD中实现移动表格?
- 在vb6中使用activereport,vb会经常死掉,什么原因?
- 关于任务栏隐藏的新问题
- access 如何判断该字段可以为空值
- 如何让鼠标right单击时先在原地模拟一个鼠标left单击
这要看你那边的函数原型是什么了?一般外部String总是Byval传递的。
ByRef userdata As String, ByRef errmsg As String这两个,如此声明,估计是想要指针?声明成Byval userdata As Long, Byval errmsg As Long,试试,传递时用StrPtr(s)传给你的函数,这样传的是Unicode串。
Private Declare Function GenCR Lib "encrypt.dll" (ByVal user_id As String, ByVal password As String, ByVal software As String, ByVal ver As String, ByVal group_id As String) As String编译错误:
在该对像模块派生的对像模块中成员已存在。
这样声明的结果,只有s8是String,其余都是Variant
所以Byref传递时,应该会有类型不匹配错误。另外,你搜索一下工程,看看GenCR是不是有重名了。
Dim s7 As String * 1024 '大小必须足够
Dim s8 As String * 256或者使用前赋值,使之实例化:
Dim s7 As String
Dim s8 As String......
s7 = String(1024,Chr(0))
s8 = Space(256)
......否则将发生系统异常的错误。
Private Declare Function GenCR1 Lib "encrypt.dll" Alias "GenCR"(...