comp.lang.ada
 help / color / mirror / Atom feed
* WIN32 createprocess with Ada
@ 1999-04-13  0:00 dpeterso
  1999-04-13  0:00 ` Jerry van Dijk
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: dpeterso @ 1999-04-13  0:00 UTC (permalink / raw)


I have been trying to do a createprocess call using Ada on WindowsNT.  The
call fails and getlasterror returns 3.	Does anyone have an example using Ada
that I may view or know what I am probably doing wrong.

Thanks

Dave P.

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: WIN32 createprocess with Ada
  1999-04-13  0:00 WIN32 createprocess with Ada dpeterso
  1999-04-13  0:00 ` Jerry van Dijk
@ 1999-04-13  0:00 ` David Botton
  1999-04-13  0:00 ` David Botton
  2 siblings, 0 replies; 5+ messages in thread
From: David Botton @ 1999-04-13  0:00 UTC (permalink / raw)


Take a look at the example "Using CreateProcess" on the Ada Source Code
Treasury:

http://www.botton.com/ada/os/win32-createprocess.html

and other Win32 examples at:

http://www.botton.com/ada/os

David Botton

dpeterso@my-dejanews.com wrote:

> I have been trying to do a createprocess call using Ada on WindowsNT.  The
> call fails and getlasterror returns 3.  Does anyone have an example using Ada
> that I may view or know what I am probably doing wrong.
>
> Thanks
>
> Dave P.
>
> -----------== Posted via Deja News, The Discussion Network ==----------
> http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: WIN32 createprocess with Ada
  1999-04-13  0:00 WIN32 createprocess with Ada dpeterso
@ 1999-04-13  0:00 ` Jerry van Dijk
  1999-04-13  0:00 ` David Botton
  1999-04-13  0:00 ` David Botton
  2 siblings, 0 replies; 5+ messages in thread
From: Jerry van Dijk @ 1999-04-13  0:00 UTC (permalink / raw)


dpeterso@my-dejanews.com wrote:

: I have been trying to do a createprocess call using Ada on WindowsNT.  The
: call fails and getlasterror returns 3.	Does anyone have an example using Ada
: that I may view or know what I am probably doing wrong.

Without seeing the code you are using, there is no way of telling what you 
might be doing wrong. 

--
-- Jerry van Dijk | Leiden, Holland
-- Team Ada       | jdijk@acm.org
-- see http://stad.dsl.nl/~jvandyk




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: WIN32 createprocess with Ada
  1999-04-13  0:00 WIN32 createprocess with Ada dpeterso
  1999-04-13  0:00 ` Jerry van Dijk
  1999-04-13  0:00 ` David Botton
@ 1999-04-13  0:00 ` David Botton
  1999-04-14  0:00   ` Martin C. Carlisle
  2 siblings, 1 reply; 5+ messages in thread
From: David Botton @ 1999-04-13  0:00 UTC (permalink / raw)
  To: dpeterso

I forgot to address the GetLastError issue. A return value of 3
indicates:

The system cannot find the path specified.
ERROR_PATH_NOT_FOUND

Don't forget to look at the example at:
http://www.botton.com/ada/os/win32-createprocess.html

Be well,
David Botton

 

dpeterso@my-dejanews.com wrote:
> The call fails and getlasterror returns 3.




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: WIN32 createprocess with Ada
  1999-04-13  0:00 ` David Botton
@ 1999-04-14  0:00   ` Martin C. Carlisle
  0 siblings, 0 replies; 5+ messages in thread
From: Martin C. Carlisle @ 1999-04-14  0:00 UTC (permalink / raw)


In article <371407D7.A15108D4@Botton.com>,
David Botton  <David@Botton.com> wrote:
>I forgot to address the GetLastError issue. A return value of 3
>indicates:
>
>The system cannot find the path specified.
>ERROR_PATH_NOT_FOUND

The most common reason for this is to forget to add ASCII.NUL to the
end of the string.

--Martin

-- 
Martin C. Carlisle, Asst Prof of Computer Science, US Air Force Academy
carlislem@acm.org, http://www.usafa.af.mil/dfcs/bios/carlisle.html
DISCLAIMER:  This content in no way reflects the opinions, standards or 
policy of the US Air Force Academy or the United States Government.




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1999-04-14  0:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-04-13  0:00 WIN32 createprocess with Ada dpeterso
1999-04-13  0:00 ` Jerry van Dijk
1999-04-13  0:00 ` David Botton
1999-04-13  0:00 ` David Botton
1999-04-14  0:00   ` Martin C. Carlisle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox