I created my own class to handle basic asset information. It is a bunch of strings. I first attach the data to a selection:
AnAsset temp;
temp.updateinfo(m_filename, m_desc, m_netver, m_localver, m_lastper, m_history);
AnAsset *ptemp = &temp;
m_list.SetItemDataPtr(m_list.GetCurSel(), ptemp);
That werks fine, but now I need to get the info back. It says I can't convert from 'void *' to 'class AnAsset' and I can't fingure out what I need to do. I tried type-casting it but that says I don't have proper constructor... Can't figure out what I am doin' wrong. Thx fer yer help...
Ominous
AnAsset temp;
temp.updateinfo(m_filename, m_desc, m_netver, m_localver, m_lastper, m_history);
AnAsset *ptemp = &temp;
m_list.SetItemDataPtr(m_list.GetCurSel(), ptemp);
That werks fine, but now I need to get the info back. It says I can't convert from 'void *' to 'class AnAsset' and I can't fingure out what I need to do. I tried type-casting it but that says I don't have proper constructor... Can't figure out what I am doin' wrong. Thx fer yer help...
Ominous