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