Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Function to get the IPAddress
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00485417
Message ID:
00485843
Views:
15
>>>>>Somebody knows a function to read the IPAddress of my computer. I need a function to be called from VFP.
>>>>>Thanks
>>>>
>>>>Will using the MSWinsck.ocx ActiveX control work? If so
oSock = CREATEOBJECT("MSWinsock.Winsock.1")
>>>>? oSock.LocalIP
should work.
>>>
>>>George why does it work with or without the .1? What exactly is that a versioning number or what? I never looked it up :o
>>
>>Probably because there are two registry entries. I used the value shown in the object's property sheet as OLEClass.
>
>I believe there is a "versionless" reference to controls in the Registry. I guess you can use it and get the latest version or specify the specific version if needed.

I got lazy and just copied it off the property sheet< s >. Without the ".1" will cause the current version to be selected.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform