大侠,帮忙啊。
运用com+
我的客户端代码是
Private Sub Command1_Click()
Dim ox As Object
Set ox = CreateObject("Com_Test.ClsAdd", "192.168.1.70")
ox.x = Text2.Text
ox.y = Text3.Text
Text1.Text = ox.myAdd()
End Sub
服务器代码是
Option Explicit
Public x, y As Integer
Public Function myAdd() As Integer
myAdd = x + y
End Function
可是我在客户端运行时,出现拒绝权限的错误,等待中,谢谢。
如果有其他好的方法也行,com+好的例子,希望指导。