mizetreestump1
asked on
where can I obtain winhttp 5.1 SDK for developing VB6 applications for my Win XP development machine?
I have looked all over and cannot find Winhttp 5.1 SDk for installation and use on my VB6 development machine. Apparently it comes bundled with XP which I am using, and I see the winhttp.dll in the system32 folder, but in the VB6 IDE, I cannot add this component, get an error "could not add component" despite it finds the dll and shows the description "Microsoft WinHTTP Services, version 5.1" in the components tab when I browse to the winhttp.dll file. I wish to use a code posting by PaulHews to automatically log into a web page and get web page data programmatically using VB6 but can't even get past adding winhttp to my project
ASKER
That was exactly what I tried. When I find the winhttp.dll file in the windows/system32 directory, and click OPEN, it DOES appear in my VB6 IDE list of components with the title "Microsoft WinHTTP Service, version 5.1" but when I click APPLY to add the icons to my toolbox, I get a generic error that the dll could not be loaded (screen shot attached). I checked the dll file to make sure it was not read only, can't figure out why I cannot add this component. I found your http digest code posting and dummy me cannot even get past the initial loading of winhttp reference !!!
HTTP.JPG
HTTP.JPG
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
That worked. I've been a VB6 programmer for almost 10 years (with no formal training) , and never knew about adding a Reference to dll's. That worked and I am on my way to play with the code snippet - Thanks a lot.
ASKER
Thanks. I hope I submitted your 50 points correctly - just joined EE today
>Thanks. I hope I submitted your 50 points correctly - just joined EE today
Well, thanks for the points and welcome to the site. :)
Well, thanks for the points and welcome to the site. :)
Microsoft WinHTTP Service, version 5.1
If you don't have this reference, try adding the reference by clicking the browse button and navigating to <windows>system32\winhttp.