Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Msagent, 1 way works, the other not - why
Message
De
08/04/2003 14:29:29
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Msagent, 1 way works, the other not - why
Divers
Thread ID:
00775196
Message ID:
00775196
Vues:
52
on a form i have a shortcut menu which allows the user to start the msagent. the following command to initiate the agent works great:
THIS.AgentObject = CREATEOBJECT("Agent.Control")
however, i need to fill some of the methods and events in the agent, so i created a sub class in my .vcx. now i am trying to call the agent as follows:
THIS.AgentObject = NewOBJECT("msagent", "classes\msagent_wrapper.vcx")
here i am getting the error "Object Class is invalid for this container". Why can i do it 1 way but not the other, and what can i do about it since i need to populate the methods/events with some code?

I know, that some objects can not be added/bound to certain objects, however, since the 1st command worked i expected the 2nd to work as well. I don't realy want to add the ole to a form, since i'd like the agent to be more global, which works with the first solution greatly.

please help somebody
thanks in advance
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform