Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!tank!eecae!netnews.upenn.edu!eniac.seas.upenn.edu!parnes From: parnes@eniac.seas.upenn.edu (Gary Parnes) Newsgroups: comp.sys.mac.programmer Subject: ARRGH (Strings and things) Message-ID: <16004@netnews.upenn.edu> Date: 27 Oct 89 04:18:11 GMT Sender: news@netnews.upenn.edu Reply-To: parnes@eniac.seas.upenn.edu.UUCP (Gary Parnes) Distribution: usa Organization: University of Pennsylvania Lines: 33 The problem is this: How in the heck do you access data in a string handle? I tried this reasoning: a string handle is a pointer to a pointer which points to a Str255 data location. So, I figured *myStringHandle returns a pointer to an Str255. And I then figured **myStringHandle returns an Str255 data type. But when I try setting strings like this in THINK C, it pleads complete ignorence. It says that it's an illegal operation on an array. So what's wrong with this? Str255 myString; StringHandle mystringhandle; myString=**mystringhandle; { computer returns: "Yo mama!" } Caution: neophyte Mac Programmer ahead. Dangerous when programming! Gary /=============================================================================\ | "You're obviously misinformed... everything | Gary Parnes | | EAST of the San Andreas Fault is going to | Computer Science Engineer | | fall into the ATLANTIC Ocean." | University of Pennsylvania | | *** parnes@eniac.seas.upenn.edu *** | *NOT* Penn State, Dammit! | \=============================================================================/