• 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 launch a URL?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to launch a URL?


  • Subject: Re: How to launch a URL?
  • From: Quinn <email@hidden>
  • Date: Tue, 11 Jun 2002 21:14:01 +0100

At 11:09 -0700 11/6/02, Morgan Redman wrote:
err = ICGetPref(inst, kICWWWHomePage, (unsigned long*)junk, (void*)str, (long*)sizeof(Str255));

The 5th parameter to ICGetPref is a (long *) that is passed in as the size of the buffer and comes back as the size of the data. To read a string you have to use:

long bufSize;

bufSize = sizeof(Str255);
err = ICGetPref(inst, kICWWWHomePage, (unsigned long*)junk, (void*)str, &bufSize);

Your Mac OS 9 code is writing over low-memory, which you generally don't notice (unless you hit something critical). However, on X the bottom 4096 bytes of your address space are mapped with no access, so if you touch it you die.

S+E
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Technical Support * Networking, Communications, Hardware
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.

References: 
 >How to launch a URL? (From: Morgan Redman <email@hidden>)

  • Prev by Date: [SOLVED] screwed by IP filtering?
  • Next by Date: Re: Locations and sets and entities, oh my!
  • Previous by thread: How to launch a URL?
  • Next by thread: [SOLVED] screwed by IP filtering?
  • Index(es):
    • Date
    • Thread