10-03-2016, 08:13 AM
(10-01-2016, 06:35 PM)Rick Johnson Wrote: Is there a straightforward way to copy or move PrefData into a DictionaryPref where I can work with it by key/value pairs? Thanks!
DictionaryPref inherits from PrefData, so you can simply cast the PrefData pointer to a DictionaryPref pointer. To be safe, don't forget to check the PrefData::dataType() method to be sure you're casting to the right subclass.