Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GETOBJECT and OLEPUBLIC
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
GETOBJECT and OLEPUBLIC
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01176727
Message ID:
01176727
Views:
57
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
Map
View

Click here to load this message in the networking platform