473,326 Members | 2,108 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Run-time 424 Error Object Required

Ok I opened a new project in vb6 a form opened up and I double clicked it and inserted the following code:



Private Sub Form_Load()
win.RemoteHost = "irc.rizon.net"
win.RemotePort = "6667"
win.Connect
End Sub


Private Sub win_connect()
win.SendData "NICK mouse1" & vbCrLf
win.SendData "USER aaaa aaaa aaaa aaaa aaaa" & vbCrLf
win.SendData "NICK mouse2" & vbCrLf
win.SendData "USER aaaa2 aaaa2 aaaa2 aaaa2 aaaa2" & vbCrLf
win.SendData "NICK mouse3" & vbCrLf
win.SendData "USER aaaa3 aaaa3 aaaa3 aaaa3 aaaa3" & vbCrLf
win.SendData "NICK mouse4" & vbCrLf
win.SendData "USER aaaa4 aaaa4 aaaa4 aaaa4 aaaa4" & vbCrLf
win.SendData "JOIN #whatever" & vbCrLf
win.SendData "MODE #whatever +k" & vbCrLf
End Sub


On line 2 : win.RemoteHost = "irc.rizon.net"
is where i get the runtime error. Why won't this code work?
Sep 20 '08 #1
6 1672
debasisdas
8,127 Expert 4TB
which component you are using ?
Sep 21 '08 #2
Component? Not sure exactly what you mean, I'm am using mIRC
Sep 22 '08 #3
I was told that most likely there is no object named 'win' in my program, any solutions? I don't entirely know what that means
Sep 22 '08 #4
win.RemoteHost

RemoteHost is a function of win. win is an object and should be in your form somewhere. Where you can find it, or any further information look where you found the code.
Sep 22 '08 #5
debasisdas
8,127 Expert 4TB
do you understand the code you are writing ?

is that your own code ?

if there is no object how are you using the properties and method of that object ?
Sep 22 '08 #6
well the code did work, so I moved on to greater projects now i never saved the working code, and I'm back to the same problem. I went to add componenets>winsock>checked it then the winsock toolbox came on an i put that in my form changed the 'Name' to 'Win" as aopposed to Winsock1 but I can't get the winsock controls to work. If I figured out the problem before I know it's possible, any help is appreciated
Oct 15 '08 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: leroybt.rm | last post by:
Can someone tell me how to run a script from a interactive shell I type the following: >>>python filename >>>python filename.py >>>run filename >>>run filename.py >>>/run filename >>>/run...
4
by: Ed | last post by:
Hello, I took a course in asp about 2 years ago and I was practicing with IIS 5.0. Then I put it down for a while. Now trying to get back to it. I can't run asp files from subdirectories of...
15
by: mg | last post by:
How can I run an .exe using C# from within the code behind of a WebForm app?
6
by: orekin | last post by:
Hi There I have been trying to come to grips with Application.Run(), Application.Exit() and the Message Pump and I would really appreciate some feedback on the following questions .. There are...
9
by: shank | last post by:
What is the proper syntax to run this command line in ASP? wzzip.exe File.zip File.txt thanks
6
by: Joel | last post by:
2 Questions: (1) The documentation says application.run() creates a standard message loop on the current thread and "optionally" shows a form. This is really confusing because I was of the...
7
by: Lee Crabtree | last post by:
I remember when I was first getting into .NET Forms programming that there was a rather emphatic rule about not constructing a form before calling Application.Run with it. So this: ...
8
by: David Thielen | last post by:
Hi; In our setup program how do I determine if I need to run "aspnet_regiis –i" and if so, is there an API I can calll rather than finding that program on the user's disk and calling it? --...
26
by: Chief | last post by:
Hello i would like to know which syntax do i have to use in order to make a program run other *.exe program and also how to put inputs in it for example i want to to make a program that run...
7
by: mxdevit | last post by:
Task: run application from ASP.NET for example, you have a button on ASP.NET page, when press this button - one application is invoked. the code to run application (for example, notepad) is...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.