• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1734
  • Last Modified:

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?
0
avoorheis
Asked:
avoorheis
  • 5
  • 2
1 Solution
 
avoorheisAuthor Commented:
nevermind,
I had the wrong file extension set when browsing in the reference window...set it to ocx and tada, it showed up.
0
 
avoorheisAuthor Commented:
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!!!
0
 
DatabaseMX (Joe Anderson - Microsoft MVP, Access and Data Platform)Commented:
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
0
Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

 
avoorheisAuthor Commented:
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.
0
 
avoorheisAuthor Commented:
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.
0
 
avoorheisAuthor Commented:
Found out I need a license to use msinet.ocx, ended up using a 3rd part add-in:
www.mvps.org/access/mdl0037.htm 
0
 
DatabaseMX (Joe Anderson - Microsoft MVP, Access and Data Platform)Commented:
np here.

mx
0
 
Vee_ModCommented:
Closed, 500 points refunded.
Vee_Mod
Community Support Moderator
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 5
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now