Login  
Search All Forums
Dart Home | PowerTCP Web for ActiveX | Custom Development Reply | PowerTCP Web for ActiveX Topics | Forums   
AuthorForum: PowerTCP Web for ActiveX
Topic: Error 2 on POST
Warwick

From: Eccleston, NSW, Australia
Posts: 1
Member Since: 04/14/03
posted April 14, 2003 4:15 AM

Hi there,

I have encountered a problem with the Web tool which I am not sure how to get around (VB6).

A POST was setting an immediate error 2 which is completely undocumented (the err.description simply shows "Miscellaneous Error")

After a lot of playing around I discovered that this was simply because IE was set as 'Work Offline'

The problem is that I cannot see how to detect this condition in code. I am using the Wininet API to see if there is an existing web connection i.e.

Private Declare Function InternetGetConnectedState Lib "wininet" (ByRef dwflags As Long, _
  ByVal dwReserved As Long) As Long

However this isnt aware of the 'Offline' capability.

Can you point me at a registry key that I can check and/or reset?

Thanks,

Warwick
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted April 14, 2003 8:52 AM

This looks like the best place to try:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings

There's a value under there called "GlobalUserOffline" that seems like it might be the one you want.
Reply | PowerTCP Web for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX