home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / mac / programm / 14922 < prev    next >
Encoding:
Text File  |  1992-09-02  |  1.6 KB  |  39 lines

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