Re: How to launch a URL?
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.