From: pottier@clipper.ens.fr (Francois Pottier)
Subject: csmp-digest-v3-038
Date: Tue, 21 Jun 1994 14:04:20 +0200 (MET DST)

C.S.M.P. Digest             Tue, 21 Jun 94       Volume 3 : Issue 38
 
Today's Topics:
 
        CopyBits with PixMap
        Gestalt, SU3.0 & List Manager
        How to tell what kind of drive a volume is?
        Photoshop Plug-in Filters useable with other programs?
        Scheduling Sleep in WaitNextEvent
        What is "Clipping Extension"?
        allocating memory quickly -- how?
        sqrti() [Re: Faster Square Root Algorithm]



The Comp.Sys.Mac.Programmer Digest is moderated by Francois Pottier
(pottier@clipper.ens.fr).
 
The digest is a collection of article threads from the internet newsgroup
comp.sys.mac.programmer.  It is designed for people who read c.s.m.p. semi-
regularly and want an archive of the discussions.  If you don't know what a
newsgroup is, you probably don't have access to it.  Ask your systems
administrator(s) for details.  If you don't have access to news, you may
still be able to post messages to the group by using a mail server like
anon.penet.fi (mail help@anon.penet.fi for more information).
 
Each issue of the digest contains one or more sets of articles (called
threads), with each set corresponding to a 'discussion' of a particular
subject.  The articles are not edited; all articles included in this digest
are in their original posted form (as received by our news server at
nef.ens.fr).  Article threads are not added to the digest until the last
article added to the thread is at least two weeks old (this is to ensure that
the thread is dead before adding it to the digest).  Article threads that
consist of only one message are generally not included in the digest.

The digest is officially distributed by two means, by email and ftp.

If you want to receive the digest by mail, send email to listserv@ens.fr
with no subject and one of the following commands as body:
    help		                Sends you a summary of commands
    subscribe csmp-digest Your Name	Adds you to the mailing list
    signoff csmp-digest			Removes you from the list
Once you have subscribed, you will automatically receive each new
issue as it is created.

The official ftp info is //ftp.dartmouth.edu/pub/csmp-digest.
Questions related to the ftp site should be directed to
scott.silver@dartmouth.edu. Currently no previous volumes of the CSMP
digest are available there.

Also, the digests are available to WAIS users.  To search back issues
with WAIS, use comp.sys.mac.programmer.src. With Mosaic, use
http://www.wais.com/wais-dbs/comp.sys.mac.programmer.html.


-------------------------------------------------------

>From ragatz@nevada.edu (Steven Ragatz)
Subject: CopyBits with PixMap
Date: 5 Jun 1994 09:52:39 GMT
Organization: University of Nevada System Computing Services

I am working through the examples in D. Mark's second Primer book using 
Think C/C++ v. 6.xx.  I am trying to use CopyBits to copy a PixMap to a 
window.  I think that I have typed the code in correctly and I have 
looked at the appropriate header files but things are still wrong.  Here is 
the code in question:

#include <Picker.h>
#include <Palette.h>

	#define NIL_POINTER	0L
	WindowPtr	gColorWindow;
	Rect		source, dest;
...
/* Setup rects and stuff */
...
 	CopyBits( &((CGrafPtr)gColorWindow)->portPixMap, 
		  &((CGrafPtr)gColorWindow)->portPixMap, 
 		  &source, &dest, srcCopy, NIL_POINTER );		
	
The error that the compiler gives is: