• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: how to solve "dereferencing pointer to incomplete type "?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: how to solve "dereferencing pointer to incomplete type "?
      • From: "Bus Mini" <email@hidden>
References: 
 >how to solve "dereferencing pointer to incomplete type "? (From: "Bus Mini" <email@hidden>)

  • Prev by Date: how to solve "dereferencing pointer to incomplete type "?
  • Next by Date: Re: Ask for some tips.
  • Previous by thread: how to solve "dereferencing pointer to incomplete type "?
  • Next by thread: Re: how to solve "dereferencing pointer to incomplete type "?
  • Index(es):
    • Date
    • Thread