CompuServe Messages

#Saving window location

    15-Mar-94 02:28:43
Fm: Steve Stockman 76507,2646
To: Eric Long 72764,1072
Eric: >>> My string is a Pstring. I copied it into temp because I read something about "not having access to your globals (A5)…" I didn't know what that was telling me, so I thought maybe I should define it within the function. <<< The message string is explicitly pointed to by the NMRec, so A5 isn't a problem. But if your response routine needs to access global variables, you have to have some way to put your correct value into A5 (or A4 for code resources). Usually this is done with the refCon; you might put the A5 or A4 value in it directly, or you might put a pointer or handle to a structure that among other things contains your A5/A4 value. Steve