home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 4645 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  895 b 

  1. Path: chaotic.mtroyal.ab.ca!amuc!637684755
  2. Newsgroups: comp.sys.amiga.programmer
  3. Subject: CreateProc()
  4. Message-ID: <222b6941.0@amuc.mtroyal.ab.ca>
  5. From: 637684755@amuc.mtroyal.ab.ca (MCollette)
  6. Date: 02 Mar 96 01:45:37 MST
  7. Distribution: na
  8. Organization: The AMiga Users of Calgary
  9.  
  10. You need the ending curly brace for the main function
  11. MCollette
  12. > I made a little program for creating a process and execute it. It looks like
  13. > this:
  14. > void main()
  15. > {
  16. >  BPTR SEGMENT;
  17. >  UBYTE *NAME="wf",*NAME_PROC="WF_PROC";
  18. >  struct /*Process*/ MsgPort  *PROCESS;
  19. >  SEGMENT=LoadSeg(NAME);
  20. >  if(!SEGMENT)
  21. >  {
  22. >  printf("%d\n",IoErr());
  23. >  exit(0);
  24. >  }
  25. >  PROCESS=CreateProc(NAME_PROC,40,SEGMENT,10000);
  26. >  if(!PROCESS)
  27. >   printf("%d\n",IoErr());
  28. >  exit(0);
  29. > I managed to run some programs i.e. "c:requestfile", but not to many.
  30. > Can anyone tell me what is needed to make it work?
  31. > /Sten
  32.  
  33.