home *** CD-ROM | disk | FTP | other *** search
- Path: suncom.rz.hu-berlin.de!news
- From: codex@stern.mathematik.hu-berlin.de (Hans Bⁿhler)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: CreateProc()
- Date: 16 Feb 1996 13:12:05 GMT
- Organization: HPC
- Message-ID: <4g1vr5$t7s@suncom.rz.hu-berlin.de>
- References: <499.6617T866T519@academy.bastad.se>
- NNTP-Posting-Host: 141.20.130.196
- X-Newsreader: WinVN 0.92.6+
-
- In article <499.6617T866T519@academy.bastad.se>, sten@academy.bastad.se (Sten Jansson) says:
- >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?
- CreateProc() doesn't create a CLI structure for the process being created.
- Therefore programs that are workbench-runnable expect a WBStartup-
- msg at process->pr_MsgPort... of course there'll be none since
- CreateProc simply runs the process.
-
- Solution:
- a) Use System() & create CLI (any tag, I don't know which)
- b) generate a WBStartup-Message by yourself and send it to the
- process. I done that years ago and it's little tricky if you
- want to pass arguments. Moreover keep in mind that some programs
- use WBStartup to find out their icon-file-names.
-
- - hans
-