Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do i know i am disconnected from a COM Object
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00446367
Message ID:
00446722
Vues:
24
You would have to tap into the OS Networking funtion and I don't know where you would start for that.

Another option may be to create your own Ping utility. This wouild generate a small amount of network traffic. If you search in the MSDN help under Entrire COlelction for "Ping sample (Winsock SOCK_RAW echo)", it may help.

>Larry, what i meen is when Windows looses connection on an interface, a Windows Event is generated, when i disconnect my NIC from the hub, Windows pop-up a litle window saying i lost connection. Is there anyway to trap this event and send it to my VFP ?
>
>>I don't think so. The only time you know you've lost the connection is when you attempt to do something and you've already lost it.
>>
>>At this point, VFP doesn't have control, the OS does. It attempts to make a connection to the other box and can't. Even then I don't think it raises an event when the connection can't be made; it just returns an error to the OS.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform