home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / mac / system / 15511 < prev    next >
Encoding:
Internet Message Format  |  1992-12-24  |  830 b 

  1. Path: sparky!uunet!elroy.jpl.nasa.gov!sdd.hp.com!spool.mu.edu!olivea!tardis!tymix!cirrus!chrism
  2. From: chrism@cirrus.com (Chris Metcalfe)
  3. Newsgroups: comp.sys.mac.system
  4. Subject: THINK C 5.0 Bug?
  5. Message-ID: <1992Dec23.223107.10313@cirrus.com>
  6. Date: 23 Dec 92 22:31:07 GMT
  7. Sender: news@cirrus.com
  8. Organization: Cirrus Logic Inc.
  9. Lines: 23
  10.  
  11. I'm trying to work through the examples in Mark & Reed's "Macintosh Programming
  12. Primer."  In the "Timer" program I've run into a problem:
  13.  
  14.     
  15.     #define        INCLUDE_SECONDS  TRUE
  16.  
  17.     unsigned long    gCurrentTime;
  18.     Str255        myTimeString;
  19.  
  20.     GetDateTime( &gCurrentTime );
  21.     IUTimeString( gCurrentTime, INCLUDE_SECONDS, myTimeString );
  22.  
  23.         .
  24.         .
  25.         .
  26.  
  27.     DrawString( myTimeString );
  28.  
  29. IUTimeString seems to returning garbage in myTimeString.
  30.  
  31. Is this a known problem in THINK C 5.0?
  32.  
  33. Email would be appreciated.
  34.