Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Call COM in VFP
Message
De
11/06/2001 08:28:13
 
 
À
11/06/2001 06:01:26
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Divers
Thread ID:
00517661
Message ID:
00517688
Vues:
14
I have a couple of questions:

- Why are you passing the RS? The Get method should create it.
- Why are you returning all records? This is not recommended. What happens if you have thousands of records?


>Hi Guys,
>
>I have a COM which run under MTS. The COM is wirtten in VB6 and run fine if I also call it in the VB6 client. But when I what to call this COM in VFP, it give me ole error 0x800706d3:authentication serivce is unknown.
>
>My COM:
>Public Sub GetCustomer( prsCustomer as ADODB.Recordset)
> --- select * from customer and return a disconnected recordset to the caller.
>end sub
>
>
>In VFP
>
>oRS = CreateObject("ADODB.Recordset")
>oOle = CreateObject("Bll_Customer.clsCustomer")
>
>?oOle.GetCustomer(@oRS) -> Ole error occurs!!!
>
>But If I call other function in the COM that don't need a ADO recordset as parameter, everything is fine. Got any ideal?
>
>Best Regards,
>Jonathan
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform