Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ADO and VFPCOM
Message
 
To
23/05/2004 02:18:30
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Miscellaneous
Thread ID:
00906288
Message ID:
00906400
Views:
27
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
Previous
Reply
Map
View

Click here to load this message in the networking platform