home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!munnari.oz.au!uniwa!cujo!NewsWatcher!user
- From: peter@cujo.curtin.edu.au (Peter N Lewis)
- Subject: TN 306 GetIconSuite glue fatal error
- Message-ID: <peter-020992122411@134.7.50.3>
- Followup-To: comp.sys.mac.programmer
- Sender: news@cujo.curtin.edu.au (News Manager)
- Organization: NCRPDA, Curtin University
- Date: Wed, 2 Sep 1992 04:30:46 GMT
- Lines: 30
-
- Hi All,
-
- I just came across this in TN 306:
-
- In the body:
-
- Function GetIconSuite( Var theSuite: Handle; theID:Integer;
- theSelector:Longint):OSErr;
-
- In the interface:
-
- FUNCTION GetIconSuite(VAR theIconSuite: Handle;theResID: INTEGER;
- selector: Integer): OSErr; INLINE $303C, $0501, $ABC9;
-
- pascal OSErr GetIconSuite(Handle *theIconSuite,short theResID,short
- selector)= {0x303C, 0x0501, 0xABC9};
-
- Now, look carefully at the selector ... oooops!
-
- Its suppose to be a LongInt/long, not an integer/short! The same most
- probabbly applies to ForEachIconDo's selector but I haven't checked it.
- Its clear it has to be a long, since the svAllMiniData constant that can be
- passed is $00FF0000, certainly not a short value...
-
- You have been warned,
- Peter.
-
- _______________________________________________________________________
- Peter N Lewis, NCRPDA, Curtin University peter@cujo.curtin.edu.au
- GPO Box U1987, Perth WA 6001, AUSTRALIA FAX: +61 9 367 8141
-