From: radke@cpre1.ee.iastate.edu (Kevin Radke)
Subject: Re: Win32Ada and CreateProcess
Date: 1997/07/11
Date: 1997-07-11T00:00:00+00:00 [thread overview]
Message-ID: <5q480u$o8k$1@news.iastate.edu> (raw)
In-Reply-To: 01bc8cfd$18b968f0$0100007f@skj_nb_02
In article <01bc8cfd$18b968f0$0100007f@skj_nb_02>,
Simon Johnston <skj@acm.org> wrote:
>Can anyone help here. I am using ObjectAda 7.1 and am trying to use the
>Win32 API CreateProcess function. I have copied code from an existing C++
>application which I know works but every time it runs I get a Win32 error
>2, which is ERROR_FILE_NOT_FOUND. Included below is the beginning of the
>package including the relevant procedure. This is beginning to annoy me so
>rather than tear out my hair I thought I would ask around.
My first guess is that Command_Line needs to be null terminated, as
do most (if not all) strings passed to the win32 routines...
(Think C... :)
> fCreate := CreateProcess(lpApplicationName => null,
> lpCommandLine => Win32.Addr(Command_Line),
...
lpCommandLine => Win32.Addr(Command_Line & Ascii.NUL),
Kevin
next prev parent reply other threads:[~1997-07-11 0:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-07-10 0:00 Win32Ada and CreateProcess Simon Johnston
1997-07-11 0:00 ` Kevin Radke [this message]
1997-07-11 0:00 ` Pascal Obry
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox