Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WinSock
Message
De
22/10/1997 17:06:38
Tony Roberson
Peavey Electronics Corporaiton
Meridian, Mississippi, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00056165
Message ID:
00056178
Vues:
39
>>>>Is there a way to make WinSock Programming calls from within Visual Foxpro
>>>
>>>Tony,
>>>
>>>If the DLL is one VFP can use (I think that it is) and you know the specification, how you would access it would depend on the version of Windows. If you were running VFP 3.0/Win 3.1, then you would use the RegFN(), CallFN functions in FOXTOOLS to access the WINSOCK.DLL. Under VFP 3.0/5.0/Win 95, you'd use the DECLARE... DLL syntax for accessing WSOCK32.DLL.
>>>
>>>hth,
>>>
>>>George
>>
>>
>>Thanks George! What I'm really having a problem with is knowing how to pass a Word datatype to the function WSAStartup to initialize the Socket. Any Ideas????
>>
>>Tony
>
>Tony,
>
>It depends on the API. 16 or 32 bit. If you're accessing the 16 bit, it's integer ("I"). If it's 32 bit, it's a SHORT declaration.
>
>hth,
>
>George


Its 32 Bit, I'm using WSock32.DLL. The specific parameter is wVersionRequested which is the Version. I'm trying to 1.1 as the parameter but am having no luck......
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform