Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GETOBJECT and OLEPUBLIC
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
Database:
Visual FoxPro
Divers
Thread ID:
01176727
Message ID:
01176729
Vues:
14
Check GetObject once more Thread #1071961

>Having a little difficulty ...
>
>My VFP9 application opens a database and other cursors. When looking up things in the database by various search methods, it displays info about them. What I want to do is activate it from VB or VBA, pass suitable parameters, and run the searches remotely.
>
>I have exposed a suitable OLEPUBLIC class to do the lookups.
>
>CREATEOBJECT("MyApp.MyLookupServer") would not do what I want because this would start a new instance at each call, and loading the database environment is non-trivial and time-consuming.
>
>I want to use a GETOJECT call so that I merely activate the running application, and order it about. Something like GETOJECT(, "MyApp.MyLookupServer") or GETOJECT(, "MyApp.Application").
>
>Unfortunately, this doesn't work (the above give different error messages.)
>
>Is this the way to go, or doesn't this kind of thing work?
>
>John Burton
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform