Prev: https://accountservices.msn.com/EmailPage.srf?emailid=5d4c1ef525bfe00f&ed=BwZ12Kf8vfLCHttpServer missing in Dev. Studio 2008
Next: Assertion in afxwin.inl line 24.
From: Giovanni Dicanio on 3 Dec 2007 04:06 "Giovanni Dicanio" <giovanni.dicanio(a)invalid.it> ha scritto nel messaggio news:eC6IlhYNIHA.6108(a)TK2MSFTNGP03.phx.gbl... > template <typename T> // T = contained type > class ListBox< T > > { > ... > > T * GetItemDataPtr(); > }; And with this template-based design we could also have polymorphism if we have a custom hierarchy class structure, e.g. if we have a class Base and a class Derived (derived from Base), we can just use ListBox< Base >, and manage Derived with it, too. G |