home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / amiga / programm / 17831 < prev    next >
Encoding:
Text File  |  1992-12-27  |  1.6 KB  |  58 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!newsflash.concordia.ca!mizar.cc.umanitoba.ca!umbadiu0
  3. From: umbadiu0@ccu.umanitoba.ca (Ted Babiuk)
  4. Subject: HELP!!!!
  5. Message-ID: <BzwyMw.2s0@ccu.umanitoba.ca>
  6. Summary: Background Tasks
  7. Keywords: Lattice C
  8. Sender: news@ccu.umanitoba.ca
  9. Nntp-Posting-Host: ccu.umanitoba.ca
  10. Organization: University of Manitoba, Winnipeg, Canada
  11. Distribution: global
  12. Date: Sun, 27 Dec 1992 10:32:56 GMT
  13. Lines: 43
  14.  
  15. *sigh*....its 4:09 and I'm at wits end with this....
  16.  
  17. I'm writting some code in SAS/Lattice C 5.10.....
  18.  
  19. What i'm trying to do is start a new task called 'cycle' which does some
  20. color cycling while my main program is running.....now.....
  21.  
  22. Address =LoadSeg("df0:Cycle");  loads the code...and.....
  23. X = CreateProc("Task_name",Address,priority,stack_size) start it....
  24.  
  25. but since i need a pointer to the viewport used in the main program in the
  26. new task 'cycle' to modify colors, how do i pass it???
  27.  
  28. CreateProc starts a process, but how do you pass data to it....
  29.  
  30. Also, I'm linking and compling my code for the cycle program as a stand a
  31. lone program....i.e.
  32.  
  33. **program cycle.c**
  34. void main()
  35. {
  36.  
  37.   Code to cycle colors, but i dont have a pointer to the viewport that I need!
  38. };
  39.  
  40. i just use:
  41. lc cycle.c
  42. and
  43. blink LIB:c.o+_cycle.o LIB LIB:amiga.lib LIB:lc.lib (lc.lib? not sure if
  44. thats the one i use...set it up in a batch file long ago....)
  45.  
  46. HOW DO I PASS THE VIEWPORT ADDRESS TO THE NEWLY CREATED TASK???????
  47.  
  48. -Thanx in advance.....
  49.  
  50.  
  51. Ted Badiuk
  52. umbadiu0@ccu.umanitoba.ca
  53.  
  54.  
  55. <SIG UNAVAIL> 5-task-held warning messages wait for my behind this
  56. window....not sure how long till this system crashes...ahhhhhhhhh......:)
  57.  
  58.