Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Obtaining IP address of current PC
Message
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00514497
Message ID:
00514556
Views:
8
>The following works for me from the command window. Would probably work under runtime?
>oForm = newobject('form')
>oForm.AddObject('MSWinsock.Winsock.1', 'oleControl')
>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.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform