avoorheis
asked on
Trying to use msinet.ocx (Inet) and ftp
I'm trying to use ftp in VB using the inet reference. I have a reference set to Microsoft Internet Controls, but, the code doesn't recognize the inet object:
"dim ftp as Inet" gets a compile error, "User-defined type not defined".
I have msinet.ocx in my system32 folder, but, it doesn't show up when I try to browse to it in the reference set up window (where you add references), so, I just assumed it was already set up.
Any idea what's happening?
"dim ftp as Inet" gets a compile error, "User-defined type not defined".
I have msinet.ocx in my system32 folder, but, it doesn't show up when I try to browse to it in the reference set up window (where you add references), so, I just assumed it was already set up.
Any idea what's happening?
ASKER
never mind,
I wasn't using the right file extension filter when searching in the reference window...when I set it to ocx, it showed up...DOH!!!
I wasn't using the right file extension filter when searching in the reference window...when I set it to ocx, it showed up...DOH!!!
Well, I was going to post this ... sort of related ... using the Web Browser Control
Dim wbA As WebBrowser
Private Sub Form_Load()
Set wbA = Me.wb01.Object
End Sub
Private Sub Command3_Click()
wbA.Navigate ("http://93.111.22:8081/")
End Sub
Put the Web Browser control on a form ... and you get IE on a form :-)
I actually have four controls on a form ... each command button opens a browser to 1 of 4 IP Cams.
mx
Dim wbA As WebBrowser
Private Sub Form_Load()
Set wbA = Me.wb01.Object
End Sub
Private Sub Command3_Click()
wbA.Navigate ("http://93.111.22:8081/")
End Sub
Put the Web Browser control on a form ... and you get IE on a form :-)
I actually have four controls on a form ... each command button opens a browser to 1 of 4 IP Cams.
mx
ASKER
I guess I spoke too soon, although the code now compiles, since the reference is ok, I get an error message on trying to create the object:
Dim ftp As Inet
Set ftp = New Inet <--ActiveX component can't create object
I'd like to use this code, but, need to get something working, so, I'll try your suggestion.
Dim ftp As Inet
Set ftp = New Inet <--ActiveX component can't create object
I'd like to use this code, but, need to get something working, so, I'll try your suggestion.
ASKER
nope, not sure how to make this work.
Don't have a form, just want to copy a couple of files to the ftp site.
Don't have a form, just want to copy a couple of files to the ftp site.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
np here.
mx
mx
Closed, 500 points refunded.
Vee_Mod
Community Support Moderator
Vee_Mod
Community Support Moderator
ASKER
I had the wrong file extension set when browsing in the reference window...set it to ocx and tada, it showed up.