From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1eb55e589296c3fa X-Google-Attributes: gid103376,public From: radke@cpre1.ee.iastate.edu (Kevin Radke) Subject: Re: Win32Ada and CreateProcess Date: 1997/07/11 Message-ID: <5q480u$o8k$1@news.iastate.edu>#1/1 X-Deja-AN: 256101379 References: <01bc8cfd$18b968f0$0100007f@skj_nb_02> Organization: Iowa State University, Ames, IA USA Newsgroups: comp.lang.ada Date: 1997-07-11T00:00:00+00:00 List-Id: In article <01bc8cfd$18b968f0$0100007f@skj_nb_02>, Simon Johnston 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