Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Msagent, 1 way works, the other not - why
Message
From
08/04/2003 14:29:29
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Msagent, 1 way works, the other not - why
Miscellaneous
Thread ID:
00775196
Message ID:
00775196
Views:
53
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
Next
Reply
Map
View

Click here to load this message in the networking platform