irc bot code, help!
My mate made a bot for irc ages ago and he just sent me the files (im new to vb so not that good). He made it in vb 6 and i have vb 2005 express edition beta 2.0.
when i try and compile it, I get 4 error messages. would anyone be able to tell me what they are and how to fix them so i can compile the bot. Coz it works when compiled in vb 6 but i don't have it. :(
Error 1 / 2 (both in same section bellow) - 'As Any' is not supported in 'Declare' statements. Option Option Friend Error 3 - Overload resolution failed because no accessible 'GetData' accepts this number of arguments.
'we got something! what is it? PrivateSub wsSock_DataArrival(ByVal eventSenderAs System.Object,ByVal eventArgsAs AxMSWinsockLib.DMSWinsockControlEvents_DataArrivalEvent)Handles wsSock.DataArrival Dim data, replyTypeAsString Dim spl()AsString 'Error bellow needs fixing. can't compile. wsSock.GetData(data, VariantType.String) 'removes xffxffxffxff data = VB.Right(data, Len(data) - 4) 'check for m or D replyType = VB.Left(data, 1) 'strip it data = VB.Right(data, Len(data) - 1) If replyType ="D"Then 'playerdata clsData.setPlayerData(data) gotPlayer =True ElseIf replyType ="m"Then 'hl1 server data clsData.setServerData(data) gotServer =True EndIf EndSub
'**************** 'Startup ***PrivateSub frmBot_Load(ByVal eventSenderAs System.Object,ByVal eventArgsAs System.EventArgs)HandlesMyBase.LoadRandomize() setNextRandom() autoresponses = Falseconnected = FalsefishChance = 0.9 buildFishList() 'UPGRADE_ISSUE: Load statement is not supported. Click for more: 'ms-help://MS.VSExpressCC.v80/dv_commoner/local/redirect.htm?keyword="B530EFF2-3132-48F8-B8BC-D88AF543D321"'Load(frmServer) isOp = FalseisAuthed = FalsegotOwner = FalsecomeBack = FalseEndSub |

