Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Access class method in .net dll from VFP9
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01311979
Message ID:
01312000
Vues:
17
This message has been marked as a message which has helped to the initial question of the thread.
>This appears to work until the .Connect() call :
>
>ox = CREATEOBJECTEX("PowerPhone.CachStandard.API.TRAPIClass","")
>lcserver = '127.0.0.1'
>lnport = 5000
>? ox.Connect(lcserver,lnport) && this returns error Unknown name
>
>but I know connect is a method of TRAPIClass...what's up with that?

Open it up in the Object Browser and make sure they've actually exposed that method. If they have, it's possible that the method is overloaded on the .NET side (eg. more than one set of parameters for the same method). The object browser should help you figure that out as well - it's possible you just need to pass in a few extra parameters.
-Paul

RCS Solutions, Inc.
Blog
Twitter
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform