>>>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
George
Ubi caritas et amor, deus ibi est