Brent McLaren
2003-11-19 00:15:15 UTC
Hi,
I am receiving this error message ("Automation error, Error in the
DLL") when I try to instantiate a WinHttpRequest object, using WinHTTP
5.0, as below:
Private HttpReq As WinHttp.WinHttpRequest
Set HttpReq = CreateObject("WinHttp.WinHttpRequest.5")
This declaration is inside a Class module. I do not seem to get the
same error if it is in a form. Also, I have never experienced the
error when the project is compiled and run as an .exe. It only
happens when I am running the program in the IDE. On one PC, if i
close the project and re-open it, the error does not occur until after
several runs of the program. However, on other PCs, I have never been
able to successfully run the program in the IDE. The whole thing
seems very odd!
Does anyone know what might be causing this error and how I can
correct it? Any suggestions would be greatly appreciated!
Thanks,
Brent
BACKGROUND INFO:
----------------
Visual Basic 6
Windows 2000 SP2
IE 5.5
WINHTTP5.dll is installed and registered
I am receiving this error message ("Automation error, Error in the
DLL") when I try to instantiate a WinHttpRequest object, using WinHTTP
5.0, as below:
Private HttpReq As WinHttp.WinHttpRequest
Set HttpReq = CreateObject("WinHttp.WinHttpRequest.5")
This declaration is inside a Class module. I do not seem to get the
same error if it is in a form. Also, I have never experienced the
error when the project is compiled and run as an .exe. It only
happens when I am running the program in the IDE. On one PC, if i
close the project and re-open it, the error does not occur until after
several runs of the program. However, on other PCs, I have never been
able to successfully run the program in the IDE. The whole thing
seems very odd!
Does anyone know what might be causing this error and how I can
correct it? Any suggestions would be greatly appreciated!
Thanks,
Brent
BACKGROUND INFO:
----------------
Visual Basic 6
Windows 2000 SP2
IE 5.5
WINHTTP5.dll is installed and registered