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