
30 Jul
2004
30 Jul
'04
1:26 p.m.
"Jeff Flinn" <TriumphSprint2000@hotmail.com> wrote in message news:cedhqq$9ur$1@sea.gmane.org...
Andrew,
(I'm top posting since for some reason auto '>' for your original text is defeated with this particular message)
One issue you mention is lifetime. I assume you have a either a CListCtrl or CListView derived class. This class should have it's own vector<shared_ptr>. Then the lifetime of the listview items is ensured.
No you can NOT use a casted shared_ptr in this fashion. You can reinterpret_cast<DWORD_PTR>(&*my_shared_ptr) if you feel you must. This will
Oops, use my_shred_ptr.get() as Jody mentioned. ----------------- Jeff Flinn Applied Dynamics, International