General information
Category:
COM/DCOM and OLE Automation
Title:
GETOBJECT and OLEPUBLIC
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
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only