>>>>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......
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only