ActiveX component Error 429

DKDiveDude

Registered User.
Local time
Today, 05:42
Joined
Mar 28, 2003
Messages
56
In Access 2000 on my Notebook computer, I added a Reference to msinet.ocx, included with Visual Basic 5.0, 6.0, Office 2000 Developer, Visual FoxPro 6.0, Visual C++ 5.0, 6.0, it hosts the Microsoft Internet Transfer Control.

Anyways only on my desktop computer had I installed one of the above programs, so I copied the msinet.ocx file from the System32 folder (Windows 2000) to my Notebook which runs Windows XP.

The functions and data types are recognized fine, but when I get to the following point:

Dim FTP as Inet
Set FTP = New Inet

Specifically Set FTP = New Inet, I get the following error:

Run-time error '429'

ActiveX component can't create object


Reading the help subject on this error, I see that it could be caused by the object class is not registrered.

How can I easily do that, without installing one of the top mentioned program, or what else could cause this problem.

Thanks
 
Create a basic application with a reference to the OCX. Then "Package & Deploy" it. Install this application on your Notebook.

Using the Package & Deploy will help in gathering all of the OCX dependencies.
 
Thanks for the quick reply, I'll try that.
 
Ok so far so good, now at least no "ActiveX component Error 429", but I still have a problem.

Let me try and show the complete code I found on thw web:

Function UploadFile(ByVal HostName As String, _
ByVal UserName As String, _
ByVal Password As String, _
ByVal LocalFileName As String, _
ByVal RemoteFileName As String) As Boolean

Dim FTP As Inet

Set FTP = New Inet
With FTP
.Protocol = icFTP
.RemoteHost = HostName
.UserName = UserName
.Password = Password
.Execute .URL, "Put " + LocalFileName + " " + RemoteFileName
Do While .StillExecuting
DoEvents
Loop
UploadFile = (.ResponseCode = 0)
End With
Set FTP = Nothing
End Function



So I call the above function and pass my parameters, example:

boolSucceed=UploadFile("www.MySuperDuperWebsite.com","username","password","c:\hello.htm","public_html/hello.htm")

And it return with NO errors - cool I thought, but I looked all over my website and the file is no where to be seen.

Any Ideas?
 

Users who are viewing this thread

Back
Top Bottom