Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why can't I use inet_addr?
Message
 
To
08/12/2005 13:52:43
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Novell 5.x
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01076321
Message ID:
01076324
Views:
29
This message has been marked as the solution to the initial question of the thread.
>Hello,
>
>I try to use the inet_addr api:
>
Declare long inet_addr IN "ws2_32.dll" (cp As String)
>?inet_addr("204.212.126.86")
>But this gives an error:


>"Too many arguments"


>What can I do?
>(I need the long value from an IP address)

Wrong declaration:

Declare long inet_addr IN "ws2_32.dll" STRING cp
?inet_addr("204.212.126.86")
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Reply
Map
View

Click here to load this message in the networking platform