Create Object ....

how do i create an msinet control using create object ?
i tried
Private inetmain As inet
Set inetmain = CreateObject("InetCtls.Inet")

I get type mismatch ... it doesnt error when i dim inetmain as object but it still doesnt work correctly..

Any ideas?

Thanks
LVL 13
crazymanAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

LorenGCommented:
CrazyMan,

I have been down this exact road.  Unfortunatly.  You can not create it with the create object.  You can only load it as a control.  You can either load additonal controls ad run time, or you will need to use the wininet.dll and it's respective api if you want a formless application.  If you are just getting html pages, I have a class wrapper already written for wininet that I can send you.

- Loren
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
crazymanAuthor Commented:
i will be using it for a few basic ftp commands but i want it encapsulated inside a class module instead of passing the inet control in a method..any examples of using the API to do this?
0
LorenGCommented:
Unfortunatly I did the http version of a class library.  These are the files I started with from Microsoft.  I had a lot of trouble using the async stuff.  

http://msdn.microsoft.com/downloads/samples/Internet/networking/vbftpjr/Default.asp

http://support.microsoft.com/support/downloads/DP3380.ASP

http://support.microsoft.com/support/downloads/DP2836.ASP

0
crazymanAuthor Commented:
Cheers
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.