>>>>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement