Page 1 of 1

SubscribeToPropertyChange

Posted: Tue Apr 19, 2005 10:43 pm
by ericvic
Another question. I havge version 2.22 and I'm calling SubscribeToPropertyChange("System Time", "Time Without Seconds"). Also I have PropertyChangeNotification defined in my class but it never seems to get called.



Any ideas?



Thanks,

Eric

Posted: Wed Apr 20, 2005 9:00 am
by ScottBot
It sounds like, perhaps, that HBPropertyChangeNotification isn't exported in your plugin (forgot to mention that to you earlier). Check out the code at the very bottom of DeviceTemplate.cpp in the SDK sample and see an example of how it is being exported and how it calls the Device object. You can pretty much just copy/paste that code.

Posted: Wed Apr 20, 2005 12:39 pm
by ericvic
Scott,



Ah, the little details :) I will check it out and let you know.



Eric

Posted: Wed Apr 20, 2005 10:10 pm
by ericvic
Scott,



That fixed it thanks.



Eric