Re: how to solve "dereferencing pointer to incomplete type "?
Re: how to solve "dereferencing pointer to incomplete type "?
- Subject: Re: how to solve "dereferencing pointer to incomplete type "?
- From: Douglas Norton <email@hidden>
- Date: Fri, 5 May 2006 16:31:07 +0100
On 5 May 2006, at 15:53, Bus Mini wrote:
I copied some code from QuickTime Compression and Decompression
Guide, but it doesn't work, I don't how to recover it, can anyone
help me?
GWorldPtr currWorld = nil;
PixMapHandle currPixMap;
CGrafPtr savedPort;
GDHandle savedDevice;
GetGWorld (&savedPort, &savedDevice);
imageRect = savedPort->portRect; //at this line XCode tell me
"dereferencing pointer to incomplete type"
Thanks for reading my e-mail, your help is very important to me.
In Carbon, CGrafPtr is now an opaque type, which means that it
probably does not point to 'struct GrafPort' anymore, and the
implementation is internal and private to OS X.
To access the portRect member, you will need to use the GetPortBounds
accessor. There is more info in QuickDraw.h about the accessors to
use with CGrafPtr's.
You will need to use:
if ( savedPort != NULL )
GetPortBounds( savedPort, &imageRect );
HTH
Douglas
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden