• 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: A problem about StripAddress
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A problem about StripAddress


  • Subject: Re: A problem about StripAddress
  • From: Allen Cronce <email@hidden>
  • Date: Wed, 10 May 2006 18:43:51 -0700

The point that several people have already made is that StripAddress doesn't do anything anymore. It's a hold over from the 68k days when Mac's had 48 bit addressing.

So instead of this:

    bufferAddr = StripAddress (*buffer);

Just do this:

    bufferAddr = *buffer;

Best,
--
Allen Cronce

Bus Mini wrote:
I found those code from QuickTime API reference, maybe because I included <QuickTime/QuickTime.h> it can be compiled.
 
here is the code, since StripAddress is no longer in use, is there something to replace it?
 
buffer = NewHandle(compressedSize);
CheckError (MemError(), "\pNewHandle buffer");
MoveHHi (buffer);
HLock (buffer);
bufferAddr = StripAddress (*buffer);
....
//then use bufferAddr to receive data
 
 
Thanks for reading my e-mail.

 
On 5/11/06, Sean McBride <email@hidden> wrote:

Apple documentation from when?  1988?  :)  StripAddress has been useless
for a long time.  It's not even in the headers anymore, I'm surprised it
compiled.





--
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: email@hidden

 _______________________________________________
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: A problem about StripAddress
      • From: Marshall Clow <email@hidden>
    • Re: A problem about StripAddress
      • From: "Bus Mini" <email@hidden>
References: 
 >A problem about StripAddress (From: "Bus Mini" <email@hidden>)
 >Re: A problem about StripAddress (From: "Sean McBride" <email@hidden>)
 >Re: A problem about StripAddress (From: "Bus Mini" <email@hidden>)

  • Prev by Date: Re: How to dump core?
  • Next by Date: Re: A problem about StripAddress
  • Previous by thread: Re: A problem about StripAddress
  • Next by thread: Re: A problem about StripAddress
  • Index(es):
    • Date
    • Thread