home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: sparky!uunet!newsflash.concordia.ca!mizar.cc.umanitoba.ca!umbadiu0
- From: umbadiu0@ccu.umanitoba.ca (Ted Babiuk)
- Subject: HELP!!!!
- Message-ID: <BzwyMw.2s0@ccu.umanitoba.ca>
- Summary: Background Tasks
- Keywords: Lattice C
- Sender: news@ccu.umanitoba.ca
- Nntp-Posting-Host: ccu.umanitoba.ca
- Organization: University of Manitoba, Winnipeg, Canada
- Distribution: global
- Date: Sun, 27 Dec 1992 10:32:56 GMT
- Lines: 43
-
- *sigh*....its 4:09 and I'm at wits end with this....
-
- I'm writting some code in SAS/Lattice C 5.10.....
-
- What i'm trying to do is start a new task called 'cycle' which does some
- color cycling while my main program is running.....now.....
-
- Address =LoadSeg("df0:Cycle"); loads the code...and.....
- X = CreateProc("Task_name",Address,priority,stack_size) start it....
-
- but since i need a pointer to the viewport used in the main program in the
- new task 'cycle' to modify colors, how do i pass it???
-
- CreateProc starts a process, but how do you pass data to it....
-
- Also, I'm linking and compling my code for the cycle program as a stand a
- lone program....i.e.
-
- **program cycle.c**
- void main()
- {
-
- Code to cycle colors, but i dont have a pointer to the viewport that I need!
- };
-
- i just use:
- lc cycle.c
- and
- blink LIB:c.o+_cycle.o LIB LIB:amiga.lib LIB:lc.lib (lc.lib? not sure if
- thats the one i use...set it up in a batch file long ago....)
-
- HOW DO I PASS THE VIEWPORT ADDRESS TO THE NEWLY CREATED TASK???????
-
- -Thanx in advance.....
-
-
- Ted Badiuk
- umbadiu0@ccu.umanitoba.ca
-
-
- <SIG UNAVAIL> 5-task-held warning messages wait for my behind this
- window....not sure how long till this system crashes...ahhhhhhhhh......:)
-
-