标签: vb6
当我尝试在VB6模块上运行这些代码时,我收到错误424(Object Required):
Public wsIRC As Winsock 功能START() wsIRC.Connect THEHOST,THEPORT 结束功能
Public wsIRC As Winsock
功能START()
wsIRC.Connect THEHOST,THEPORT
结束功能
我该如何解决?
答案 0 :(得分:0)
您需要像这样创建一个新的Winsock对象
set wsIRC = new Winsock
您可能还需要指定 Public withevents wsIRC As Winsock
Public withevents wsIRC As Winsock