home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / mac / hypercar / 4154 < prev    next >
Encoding:
Text File  |  1992-11-10  |  2.3 KB  |  55 lines

  1. Newsgroups: comp.sys.mac.hypercard
  2. Path: sparky!uunet!decwrl!apple!mumbo.apple.com!gallant.apple.com!kip2-24.apple.com!user
  3. From: jpugh@apple.com (Jon Pugh)
  4. Subject: Re: Think C 4.0, Hypercard, sys7, glue-routines, etc..
  5. Sender: news@gallant.apple.com
  6. Message-ID: <jpugh-101192235227@kip2-24.apple.com>
  7. Date: Wed, 11 Nov 1992 07:59:11 GMT
  8. References: <1992Nov10.193540.26758@cs.ucla.edu>
  9. Organization: Apple Computer, Inc.
  10. Followup-To: comp.sys.mac.hypercard,comp.sys.mac.apps,comp.sys.mac.system
  11. Lines: 42
  12.  
  13. In article <1992Nov10.193540.26758@cs.ucla.edu>, jason@lanai.cs.ucla.edu
  14. (Jason Rosenberg) wrote:
  15. > Hello,
  16. > We are in the process of writing some xcmds for hyperCard, running on
  17. > system 7, with Hypercard 2.1.  We have been using Think C 4.0.  
  18. > We have had several problems, especially in the area of i/o (fopen, etc.).
  19. > The system hangs when when we attempt an fopen call, when executing as an
  20. > XCMD within hypercard.
  21. > Is it simply not ok to use stdio calls within Hypercard?  I've heard this
  22. > vaguely before, but didn't get the full explanantion.  If so, are there any
  23. > suggestions out there for opening a binary file within an XCMD?
  24. > Is there a problem with using Think C 4.0 and system 7?  We are aware that
  25. > there is a new version of Think C (5.0).  Might this help?  
  26. > Also, have the hypercard glue routines changed for HC 2.1?  We down loaded the
  27. > glue-routines from an ftp site at uc irvine under the Symantec directory.  Is
  28. > this the most uptodate set of glue routines?  If not, where might we find
  29. > the latest versions of these?
  30.  
  31. The stdio library routines use globals.  This is bad.  You are probably
  32. munging some of Hypercard's globals.  I can't guarentee that this is what's
  33. going on, but I believe it is.
  34.  
  35. You should use the Macintosh File Manager routines to do IO.  See the new
  36. Inside Macintosh: Files (or Inside Mac II, IV, V & VI) for a synopsis.
  37.  
  38. You should also be using THINK C 5.0.3, although I'm not sure if 4.0
  39. malfunctions under System 7.  Perhaps someone who has tried can fill us in.
  40.  I just make a point out of using the latest versions.
  41.  
  42. Finally, the XCMD interface header should be present in THINK C's Mac
  43. includes, Apple includes folder.  If it defines XTalkObject then it is the
  44. latest version. There's a library around there too.
  45.  
  46. Good luck!
  47.  
  48. Jon
  49.