SubscribeToPropertyChange

HouseBot Plugin Development Discussions.
Post Reply
ericvic
Senior Member
Posts: 144
Joined: Thu Feb 26, 2004 11:06 am
Location: Irondale, AL
Contact:

SubscribeToPropertyChange

Post 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
ScottBot
Site Admin
Posts: 2790
Joined: Thu Feb 13, 2003 6:46 pm
Location: Georgia (USA)
Contact:

Post 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.
Scott
ericvic
Senior Member
Posts: 144
Joined: Thu Feb 26, 2004 11:06 am
Location: Irondale, AL
Contact:

Post by ericvic »

Scott,



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



Eric
ericvic
Senior Member
Posts: 144
Joined: Thu Feb 26, 2004 11:06 am
Location: Irondale, AL
Contact:

Post by ericvic »

Scott,



That fixed it thanks.



Eric
Post Reply