Information générale
Catégorie:
Programmation Orientée Object
Versions des environnements
Network:
Windows 2003 Server
>What I am trying to do is create a COM EXE server. The user calls a method in the COM server that calls a form. The form instantiates a view, which presumably is a table in the data session. The form closes, and the function returns to the caller.
>
>Since instantiating the view is actually time consuming, and, the table will not change from call to call, I would like the next call to the form to be able to use the same table.
>
>I know that this isn't the way you're supposed to use COM servers, but I have only one user who needs this.
>
>So, if the form is sharing the same data session as the object that called it. When the form closes, does the table live on in the common data session?
I#m not to clear visualizing your needs - but why not keep the form around if it is a single app scenario ? Just call it caching ;-)
If many apps need to call the same form/view, look into calling into a vfp exe via OLE. Might be a better fit if the same data is needed, or re-using the same Exe-activeX with getobject()
HTH
thomas
Précédent
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