Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Function to get the IPAddress
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00485417
Message ID:
00485681
Vues:
16
>>>
oSock = CREATEOBJECT("MSWinsock.Winsock.1")
>>>? oSock.LocalIP
should work.

>>George why does it work with or without the .1?

>It is a version number. There are usually two entries in the registry. The current version you have installed and a version independent entry that redirects COM calls to the versioned entry.
>
>So either will work.

Without looking it up I presume if you have more than one version the version independent entry redirects to the most recent or latest version?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform