Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

object property not refreshed

Status
Not open for further replies.

almoes

Programmer
Jan 8, 2003
291
US
Hi all!

I have an activex exe running on the server and another component on the client. When I try to read a server object property, I always get back the initial value but the property is really changing, any ideas of what is going wrong?

thanks,
alej
 
I just discovered whats wrong, but still need help. My activeXexe on the server wraps another component and this one fires events, but it looks like these events are not fired when wrapped by the activeX exe, any ideas?? The same events are fired if the component is wrapped by a normal exe.

thanks,
alej
 
Not fired where?

Not fired in the wrapper or not fired in the client of the wrapper?

Greetings,
Rick
 
not fired in the wrapper

cheers,
alej
 
Since you're referring to the server as an activeX exe I presume you're programming in VB:

Probably a stupid question; but did you declare the reference to the server WithEvents ?


Greetings,
Rick
 
maybe its not such a stupid question. What do you mean by it??

cheers,
alej
 
Please post the declaration of your object;

It should be something like this:

Private WithEvents m_objServer As your_object_server

Greetings,
Rick
 
It doesn't work, when I try to compile it says 'object doesn't source events'. Anyway I think this is not the case. The object firing the events is the wrapped component on the server. I think its because I can't trigger this events on the server class as I triggered them before when the component was wrapped by an exe. Any ideas of how to do it? I thought it should be the same definition, not?

cheers,
alej
 
Hey!!!!! tones of thanks!!!! I had to do what you said but in the wrapper itself, and then I have displayed all the events of the component!! you are great!!!

super cheers ;-)
alej
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top