home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / mswindo / programm / misc / 4650 < prev    next >
Encoding:
Text File  |  1993-01-06  |  1.2 KB  |  28 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!The-Star.honeywell.com!umn.edu!turtle.psych.umn.edu!erik
  3. From: erik@turtle.psych.umn.edu (Erik Arthur)
  4. Subject: Loading Bitmaps from Resource Editor (TPW 1.5)
  5. Message-ID: <1993Jan6.205044.24863@news2.cis.umn.edu>
  6. Sender: news@news2.cis.umn.edu (Usenet News Administration)
  7. Nntp-Posting-Host: turtle.psych.umn.edu
  8. Organization: University of Minnesota, Minneapolis
  9. Date: Wed, 6 Jan 1993 20:50:44 GMT
  10. Lines: 16
  11.  
  12. Hello,
  13.  
  14. I am writing a solitare type game and have a couple of questions about
  15. loading bitmaps from a *.res file.  I have been loading the bitmaps
  16. sequentially into a single variable of type HBitmap when the program
  17. needs to display them.  The problem is that I don't think that the
  18. HBitmap variable is being reused properly.  When I exit the application,
  19. a certain percentage of the windows resources reported by the Program
  20. Manager are gone.  What does the program need to do in order to reuse
  21. the variable?  When I use DeleteObject, the program crashes with a stack
  22. error.  Should I just load all of the bitmaps into an array?
  23. I am using TPW 1.5
  24.  
  25. Thanks in advance,
  26.  
  27. Erik Arthur    erik@turtle.psych.umn.edu
  28.