Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Obtaining IP address of current PC
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00514497
Message ID:
00514566
Vues:
10
>>The following works for me from the command window. Would probably work under runtime?
>>oForm = newobject('form')
>>oForm.AddObject('oleWinsock','oleControl', 'MSWinsock.Winsock.1')
>>lcIP = oForm.oleWinsock.LocalIP
>>lcHost = oForm.oleWinsock.LocalHostName
>>
>
>Mark,
>It wouldn't because AddObject also needs the development license to work. It will work if you build an EXE and run it from your Development PC but it won't work on a user PC because the necessary license registry key is not installed.

So this is the same issue as the Progress bar control where you have to subclass the progress bar by dropping it on a form, then using that class in your apps.
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform