Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DLL update the data
Message
De
23/11/2000 22:22:19
 
 
À
23/11/2000 03:22:27
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00444501
Message ID:
00445101
Vues:
16
>Dear Moore,
>
>Thank you for your reply! I try to write a program to return a recordset from DLL using ADO but it doesn't work. Could you show me how can I do that?
>
>My sample program :
>
>-Create a new custom object(named as "DBTEST") within a visual class(named as "testdll") and add a new method named as "listdata"
>
>-Command on "listdata" as below
>
>cn = createobject('ADODB.Connection')
>rs = createobject('ADODB.RecordSet')
>
>cn.open("TESTDB")
>rs.open("Select * from testdb",cn)
>
>Return rs
>
>- Build DLL file and register it.
>
>-Command on the program TEST.PRG to call DLL
>
>x = createobject('testdll.dbtest')
>y = x.listdata()
>
>After run the program, type of variable y is UNKNOWN TYPE. Could you tell me what's the problem. Thank you for your help!!
>
>Best Regards,
>
>Justy Chow

Did you verify that your ADO connection and query are succeeding? What you are trying should work, I do it all the time.
Erik Moore
Clientelligence
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform