There might be some useful info in download #
9840. It wraps ADO services inside a VFP COM.
>Hi,
>
>I'm trying to create a webservice that will query a Fox table and return the results in a recordset back to VS.NET. I am using the VFPCOM utility to create a recordset When I run my code for my DLL (eventually my web service) everything works fine. When I compile the code into a DLL and call it from code I get "This OCX can only be hosted by Visual Foxpro". The code inside the program is this:
>
>#DEFINE C_VFPCOMCLASS 'vfpcom.comutil'
>oVFPCOM = CREATEOBJECT('VFPCOM.COMUTIL')
>oRECORDSET = CREATEOBJECT('ADODB.RECORDSET')
>nERROR = oVFPCOM.CURSORTORS(oRECORDSET, 'mycursor')
>
>Any ideas on this issue or am I going about this function in totally the wrong direction? Any help would greatly be appreciated!!
>
>Thanks in advance!
>
>Tim
Imagination is more important than knowledge