>I'm having problems converting a DLL declaration from VB to VFP.
>
>VB Code: DECLARE FUNCTION WEBAPITransaction LIB "webapiclient.dll" (ByVal sendbuf As Any, ByVal sendlen As Long, ByRef recvbuf As Any, ByVal recvlen As Long, ByRef actlen As Long) AS LONG
>
>VFP Code: DECLARE LONG WEBAPITransaction IN "webapiclient.dll" STRING sendbuf, LONG sendlen, STRING recvbuf , LONG recvlen, LONG actlen
>
>Any ideas? I used STRING (VFP) in place of ANY (VB) because the data types of the values passed are strings - is there a Variant data type in VFP...
Hi Aaron,
Just a couple of ideas. First, you don't need to enclose the file name of the DLL in quotes. Second, STRING recvbuf needs to be STRING @recvbuf since it's being passed by reference.
George
Ubi caritas et amor, deus ibi est