home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.ms-windows.programmer.misc
- Path: sparky!uunet!mcsun!news.funet.fi!ousrvr.oulu.fi!phoenix!artoinas
- From: artoinas@phoenix.oulu.fi (Arto Oinas)
- Subject: OWL - modifying destructors
- Message-ID: <1993Jan11.093034.17621@ousrvr.oulu.fi>
- Sender: news@ousrvr.oulu.fi
- Organization: University of Oulu, Finland
- X-Newsreader: TIN [version 1.1 PL6]
- Date: Mon, 11 Jan 1993 09:30:34 GMT
- Lines: 12
-
-
- I have been programming with Turbo C++ for Windows nearly a mounth.
- I have used OWL classes to create interface elements. Now I am facing
- a problem. I want allocate dynamic memory for child buttons (to an array of
- pointers to the buttons) in a window. Because the window itself, derived from
- TWindow, handles destructing its children, I don't know how to, and where free
- the allocated memory for the pointers. The dynamic allocation is necessa-
- ry because the number of those buttons can change, depending on the data-file
- which the program reads.
-
- Thanks for yer help,
- Arto Oina
-