• 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: "Bus Mini" <email@hidden>
  • Date: Sat, 6 May 2006 00:01:01 +0800

Thank you very much, you are really helpful.

On 5/5/06, Douglas Norton <email@hidden> wrote:
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



--
Yours sincerely
Mini Bus.
 _______________________________________________
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

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>)

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