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

Click here to load this message in the networking platform