home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / amiga / programm / 17983 < prev    next >
Encoding:
Internet Message Format  |  1992-12-31  |  1.3 KB

  1. Path: sparky!uunet!elroy.jpl.nasa.gov!decwrl!sun-barr!male.EBay.Sun.COM!exodus.Eng.Sun.COM!pepper.Eng.Sun.COM!cmcmanis
  2. From: cmcmanis@pepper.Eng.Sun.COM (Chuck McManis)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: HELP!!!!
  5. Date: 31 Dec 1992 08:27:12 GMT
  6. Organization: Sun
  7. Lines: 22
  8. Distribution: global
  9. Message-ID: <lk5bn0INN3nl@exodus.Eng.Sun.COM>
  10. References: <BzwyMw.2s0@ccu.umanitoba.ca>
  11. NNTP-Posting-Host: pepper
  12. Keywords: Lattice C
  13.  
  14. In article <BzwyMw.2s0@ccu.umanitoba.ca> umbadiu0@ccu.umanitoba.ca (Ted Babiuk) writes:
  15. >HOW DO I PASS THE VIEWPORT ADDRESS TO THE NEWLY CREATED TASK???????
  16.  
  17. Have your newly created task open a message port, and wait for the parent
  18. to send it the viewport address. Something like this works for my uemacs
  19. hack :
  20.     parent:
  21.         CreatePort("mainport",...);
  22.         CreateChildProcess(...);
  23.         Now as soon as its ready, it will signal us on our
  24.         port...
  25.         Wait(mainport);
  26.         Findport("ChildsPort");
  27.         PutMsg(ChildsPort, "Heres my viewport address");
  28.         ...
  29. Simple rendesvous protocol. Note you'll have to fill in the appropriate
  30. message structures etc.
  31.  
  32. --
  33. --Chuck McManis                Mr. NIS+                Sunsoft
  34. uucp: {anywhere}!sun!cmcmanis   BIX: <none>   Internet: cmcmanis@Eng.Sun.COM
  35. These opinions are my own and no one elses, but you knew that didn't you.
  36.