WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

WinInet
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

iGetLastError Always Returns 2 with IE5

Keywords: 	  iGetLastError IE5

Question:

Just upgraded to IE5 and I always get iGetLastError() returns 2. I am not sure they are really related but my script (to read *this* BBS) has been working for eons until I upgraded IE4 to IE5. Any similar experiences?

Answer:

Hmmm. #2 is basically FileNotFOund.

I studied the problem. Some notes.

iUrlOpen seems to work but somehow a bad error code is getting set. It looks like maybe a bug in the new WinInet DLL. We will be adding some kind of fix to set iGetLastError to 0 if the operation seemed to have worked.

Try ignoring iGetLastError after a ireadurl - expecially if the value is 2, and assume it is ok.


Article ID:   W12599
Filename:   iGetLastError Always Returns 2 with IE5.txt
File Created: 1999:04:15:16:48:20
Last Updated: 1999:04:15:16:48:20