Information générale
Catégorie:
COM/DCOM et OLE Automation
Titre:
GETOBJECT and OLEPUBLIC
Versions des environnements
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
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement