Article View: comp.os.ms-windows.programmer.tools.mfc
Article #69Re: Linked Lists
From: Blake Kadatz
Date: Sat, 06 Apr 1996 14:08
Date: Sat, 06 Apr 1996 14:08
18 lines
1366 bytes
1366 bytes
John Lutz wrote: > > I would like to store all the objects in a linked list for a given window. I > would like for the linked list to handle the dynamic allocation of these > object and return the pointer to the subclass that is allocating the objects > on the linked list. I would like for the linked list class to delete all > objects dynamically. Have you tried CObList or CPtrList? These classes don't automatically delete the object for you, but when you remove the object from the list, it returns you a pointer. Easy -- just delete that pointer. -- -------------------------------------------------------------------- Blake Kadatz phone: 604-420-3931 BitMotion Software Inc. fax: 604-420-3921 304 - 7321 Halifax Street mailto:blake_kadatz@mindlink.bc.ca Burnaby, B.C., Canada V5A 4R5
Technical Details
Message-ID:
<31667AC8.4EE2@mindlink.bc.ca>Path:
arc1-ca.pugleaf.net!news.mindlink.net!newsReferences:
<4k2kom$k5r@news2.cts.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!news.mindlink.net!news From: Blake Kadatz <blake_kadatz@mindlink.bc.ca> Newsgroups: comp.os.ms-windows.programmer.tools.mfc,comp.lang.c++ Subject: Re: Linked Lists Date: Sat, 06 Apr 1996 06:08:08 -0800 Organization: BitMotion Software Inc. Message-ID: <31667AC8.4EE2@mindlink.bc.ca> References: <4k2kom$k5r@news2.cts.com> NNTP-Posting-Host: line019.nwm.mindlink.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 2.0 (Win16; I)