home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!europa.asd.contel.com!darwin.sura.net!zaphod.mps.ohio-state.edu!n8emr!bluemoon!zaphod
- From: zaphod@bluemoon.rn.com (Peter Bierman)
- Subject: Re: Hermes external in C
- Message-ID: <cNmeqB7w165w@bluemoon.rn.com>
- Sender: bbs@bluemoon.rn.com (BBS Login)
- Organization: Blue Moon BBS ((614) 868-998[024])
- References: <1422.2AA01A7F@fidogate.FIDONET.ORG>
- Date: Tue, 01 Sep 92 00:07:35 EDT
- Lines: 27
-
- Mary.Hicks@p0.f222.n125.z1.FIDONET.ORG (Mary Hicks) writes:
-
- > I would like to make an external for hermes, just as an example, but I
- > dont understand how. I read the Hermes Interface file, but I still need
- > help. I currently know how to program in C, but I cant make an external.
-
- Well, first, get the HermHeaders in Pascal. The HEI file has some
- examples, namely the phone external, that pretty much does what you asked.
-
- The basic idea is that your external keeps a block in the heap with
- variables. When you get called, you check a variable to see where you were
- in your external, then you do a BIG case statement to get there. When you
- finish one "stage" you update the stage variable to the next part of the
- external to be called, and then go back to Hermes. Hermes should then do
- some stuff, and call you again, and the cycle goes on.
-
- It's pretty simple actually, just takes a little getting used to. Partly
- because for a Mac programer, it's wierd to work in modes.
-
-
- ---
- The opinions I express are rarely my own, because my own are far too
- outragous to post here.
-
- IntNet:zaphod@bluemoon.rn.com FutureNet: #33@#10
- The Metropolis (614)-846-1911
- ---
-