Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why can't I use inet_addr?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Novell 5.x
Database:
Visual FoxPro
Divers
Thread ID:
01076321
Message ID:
01076324
Vues:
28
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform