Path: utzoo!attcan!uunet!seismo!sundc!pitstop!sun!decwrl!labrea!rutgers!njin!princeton!udel!irwin@oscar.ccm.udel.edu From: irwin@oscar.ccm.udel.edu Newsgroups: comp.sys.mac.programmer Subject: String constants in a code resource Message-ID: <5919@louie.udel.EDU> Date: 11 Dec 88 01:20:06 GMT Sender: usenet@udel.EDU Distribution: na Organization: University of Delaware, CCM Lines: 17 I am trying to write an XFCN in LSC3.0 and ran into a bit of a problem. Are string constants considered globals that are not allowed? I tried setting a (pointer to char) to a string constant. I then wanted to copy this string to the returnValue. The copying works in a simple application but if I try it in the XFCN, the string pointer points to a NULL and nothing gets copied. If I use many 4 byte constants ('abcd') to fill a string, it works. Maybe I am just completely missing something because I should be out having fun now but I am sitting here at my desk _working_! Well, thanks for any help you can give. Richard Irwin irwin@oscar.ccm.udel.edu Center for Composite Materials Univeristy of DelaWhere?