Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!bloom-beacon!bu-cs!dartvax!eleazar.dartmouth.edu!earleh From: earleh@eleazar.dartmouth.edu (Earle R. Horton) Newsgroups: comp.sys.mac.programmer Subject: MPW C #include file problem, Packages.h. Keywords: IUDATESTRING, IUDATEPSTRING Message-ID: <8967@dartvax.Dartmouth.EDU> Date: 21 Jun 88 21:20:35 GMT Sender: news@dartvax.Dartmouth.EDU Reply-To: earleh@eleazar.dartmouth.edu (Earle R. Horton) Organization: Dartmouth College, Hanover, NH Lines: 16 In case you use the "real" interface to the ToolBox from MPW C, and you ever want to know the date in other than short form, try applying this patch: target {cincludes}Packages.h;find 186 replace -c 2 /short longFlag/ 'DateForm longFlag' LongFlag is a byte, and the correct way to pass it to IUDateString is in the high order byte of a word. The MPW C #include file, as distributed, passes it in the low-order byte and you always get the short form for the date, unless you fix the #include file or (heaven forbid!) use the C interface glue routines for this function (wimp if you do.) Earle R. Horton, Thayer School of Engineering, Hanover, NH I wouldn't mind dying -- it's that business of having to stay dead that scares the sh*t out of me. -- R. Geis