[comp.sys.amiga.programmer] CreateProc

stefanb@cip-s02.informatik.rwth-aachen.de (Stefan Becker) (03/11/91)

Hi!
I have a program which starts programs by using LoadSeg/CreateProc and then
sending a WBStartup message to the new process (standard WB callup method).
Since the program runs only under 2.0, I wanted to use the new DOS function
CreateNewProc(), but it didn't function properly.

What tags do I need to make CreateNewProc() behave FULL compatible to
CreateProc()??

	Stefan

Mail  : Stefan Becker, Holsteinstrasse 9, D-5100 Aachen  ///    Only
Phone : +49-241-505705   FIDO: 2:242/7.6    Germany     ///  Amiga makes
Domain: stefanb@informatik.rwth-aachen.de           \\\///  it possible..
Bang  : ..mcvax!unido!rwthinf!stefanb                \XX/  -->A3000/25<--

ken@cbmvax.commodore.com (Ken Farinsky - CATS) (03/12/91)

In article <stefanb.668642559@cip-s02> stefanb@cip-s02.informatik.rwth-aachen.de (Stefan Becker) writes:
>I have a program which starts programs by using LoadSeg/CreateProc and then
>sending a WBStartup message to the new process (standard WB callup method).
>Since the program runs only under 2.0, I wanted to use the new DOS function
>CreateNewProc(), but it didn't function properly.
>
>What tags do I need to make CreateNewProc() behave FULL compatible to
>CreateProc()??

If you're used to programming with CreateProc(), then you must use a bit
of care when switching to CreateNewProc().  The biggest problem is that
CreateProc() returns a pointer to the message port of the process structure,
and CreateNewProc() returns a pointer to the process structure.
-- 
--
Ken Farinsky - CATS - (215) 431-9421 - Commodore Business Machines
uucp: ken@cbmvax.commodore.com   or  ...{uunet,rutgers}!cbmvax!ken
bix:  kfarinsky