home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!wupost!mont!mizzou1.missouri.edu!UC525655
- From: UC525655@mizzou1.missouri.edu (Mark Eaton)
- Subject: assigning a StringPtr to an array of Str255s?
- Message-ID: <16B50FE12.UC525655@mizzou1.missouri.edu>
- Sender: news@mont.cs.missouri.edu
- Nntp-Posting-Host: mizzou1.missouri.edu
- Organization: University of Missouri
- Date: Fri, 08 Jan 93 18:04:02 CST
- Lines: 25
-
- I have a struct declared as:
-
- struct someStuff
- {
- ...
- str255 contents[99];
- }
-
- this struct is global.
-
- from within a function I:
-
- PBGetCatInfo(myCInfoPBRec)
- someStuff.contents[myCInfoPBRec.hFileParam.ioFDirIndex] =
- myCInfoPBRec.hFileParam.ioNamePtr;
-
- when I do this, I get the error 'cant assign to array'
- when I try to dereference ioNamePtr I get 'syntax error'
-
- I know this will knock me on the head, but can someone tell me what Im doing
- wrong?
-
- mark
-
- btw Im using ThinkC 5
-