home *** CD-ROM | disk | FTP | other *** search
- Path: chaotic.mtroyal.ab.ca!amuc!637684755
- Newsgroups: comp.sys.amiga.programmer
- Subject: CreateProc()
- Message-ID: <222b6941.0@amuc.mtroyal.ab.ca>
- From: 637684755@amuc.mtroyal.ab.ca (MCollette)
- Date: 02 Mar 96 01:45:37 MST
- Distribution: na
- Organization: The AMiga Users of Calgary
-
- You need the ending curly brace for the main function
- MCollette
- > I made a little program for creating a process and execute it. It looks like
- > this:
- >
- > void main()
- > {
- > BPTR SEGMENT;
- > UBYTE *NAME="wf",*NAME_PROC="WF_PROC";
- > struct /*Process*/ MsgPort *PROCESS;
- > SEGMENT=LoadSeg(NAME);
- > if(!SEGMENT)
- > {
- > printf("%d\n",IoErr());
- > exit(0);
- > }
- > PROCESS=CreateProc(NAME_PROC,40,SEGMENT,10000);
- > if(!PROCESS)
- > printf("%d\n",IoErr());
- > exit(0);
- >
- > I managed to run some programs i.e. "c:requestfile", but not to many.
- > Can anyone tell me what is needed to make it work?
- >
- > /Sten
- >
-
-