home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / mac / programm / 20369 < prev    next >
Encoding:
Internet Message Format  |  1992-12-29  |  1.6 KB

  1. Path: sparky!uunet!spool.mu.edu!umn.edu!msus1.msus.edu!vax1.mankato.msus.edu!t303grey
  2. Newsgroups: comp.sys.mac.programmer
  3. Subject: Re: What am I doin wrong? (One down, one more to go)
  4. Message-ID: <1992Dec28.225402.1@vax1.mankato.msus.edu>
  5. From: t303grey@vax1.mankato.msus.edu
  6. Date: 28 Dec 92 22:54:02 -0600
  7. References: <1992Dec27.133008.1@vax1.mankato.msus.edu> <1992Dec28.224411.22427@news.acns.nwu.edu>
  8. Distribution: usa
  9. Organization: Mankato State University
  10. Nntp-Posting-Host: vax1.mankato.msus.edu
  11. Lines: 26
  12.  
  13. In article <1992Dec28.224411.22427@news.acns.nwu.edu>, geek@casbah.acns.nwu.edu (Myrland Gray) writes:
  14. > It looks to me like the problem is that you are passing the address of the
  15. > handle to your pixmap, rather than a pointer to a pixmap. In other words, with
  16. > your first parameter to CopyBits, three dereferences are necessary in order to
  17. > access the contents of the pixmap. However, CopyBits will only do a single
  18. > dereference of its first (and second) parameters to get to the "guts" and so
  19. > who really knows what you were blasting into your window (if anything). The fix
  20. > is to lock your pixel map, pass *pixBase (maybe type-casted as a BitMap* ???),
  21. > and then unlock your pixel map. That should work. I've done exactly what you
  22. > seem to have done so many times, I could solve this in my sleep!
  23. > As some of the other responses to your query have pointed out, the routines you
  24. > are using are specific to system 7. Just make sure that's really what you want.
  25. > Joey Gray
  26. > geek@casbah.acns.nwu.edu
  27.  
  28.   That did it. Thanks. Do you have any idea why palette manager isn't working?
  29. (problem 2:)
  30.  
  31.   Yes I'm writing sys7 Depemdent app.
  32.  
  33. DevilCat
  34.  
  35.