home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / mswindo / programm / misc / 4818 < prev    next >
Encoding:
Text File  |  1993-01-11  |  987 b   |  24 lines

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