home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / mac / oop / macapp3 / 14 < prev    next >
Encoding:
Text File  |  1992-11-18  |  1.5 KB  |  42 lines

  1. Path: sparky!uunet!cs.utexas.edu!sun-barr!ames!saimiri.primate.wisc.edu!sdd.hp.com!hplabs!nsc!voder!apple!applelink.apple.com
  2. From: KVICTOR@AppleLink.Apple.COM (Victor Consulting, Ken Victor,CST)
  3. Newsgroups: comp.sys.mac.oop.macapp3
  4. Subject: CStr31 Array Syntax???
  5. Message-ID: <722150266.0608389@AppleLink.Apple.COM>
  6. Date: 19 Nov 92 02:22:00 GMT
  7. Sender: daemon@Apple.COM
  8. Organization: AppleLink Gateway
  9. Lines: 31
  10.  
  11. Could someone please tell me what i'm doing wrong.
  12.  
  13. i have the following definition in one of my header files:
  14.  
  15. class TAccountsDocument : public TFileBasedDocument {
  16.        public:
  17.           ...
  18.         CStr31 fPeriodNames[knPNames]; // period names
  19.        ...
  20.  
  21. this gives the following warning message:
  22.  
  23. Compiling:     UAccountsDocument.cp
  24. warning: -d or -u option(s) will not affect code saved in dump file
  25. File "UAccountsDocument.h"; line 55 # warning: can't take address of inline
  26.                     function  CStr31::CStr31(),  CStr31::CStr31() not inlined
  27. File "Data:Accounts:UAccountsDocument.cp"; line 220 # warning: out-of-line
  28.                     copy of  CStr31::CStr31() created
  29.  
  30. line 55 in the header file is the closing brace (}) of the class definition.
  31. line 220 of the .cp file is after the last statement.
  32.  
  33. i am trying to declare a class variable to be an array of CStr31s.  If I am
  34. using the wrong syntax, could someone please tell me the right syntax.  if i am
  35. using the right syntax, could someone give me an idea of where to look for what
  36. i am doing wrong to generate these warning messages.
  37.  
  38. thanx,
  39. Ken Victor
  40. (415) 964-9870
  41.  
  42.