| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
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: http://lists.apple.com/mailman/options/xcode-users/email@hidden This email sent to email@hidden
| References: | |
| >how to solve "dereferencing pointer to incomplete type "? (From: "Bus Mini" <email@hidden>) | |
| >Re: how to solve "dereferencing pointer to incomplete type "? (From: Douglas Norton <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.