🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #11403

Re: CreateProcess

#11403
From: Fraser Ross
Date: Sun, 08 Feb 2004 19:58
14 lines
1607 bytes
int res=CreateProcess(NULL, (LPTSTR)command_line.c_str(), 0, 0, false,
CREATE_NEW_CONSOLE, 0, 0, &si, &pi);

command_line has something like "prog.exe \"C:\temp\file.ext\"".
si and pi are zeroed.
The called program is a dos program.  I don't know why it works with long
file names.  As I said prog.exe in this example would have to be in C:\temp
as well as the directory of the calling program. The message 'cannot find
the file prog.exe. make sure that the file exists on your system and that
the path and filename are correct.'  appears if prog.exe is not in C:\temp.
I'm not sure where it comes from.


Fraser.
Technical Details
Message-ID: <40269570@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-08!supernews.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <40267a98@newsgroups.borland.com> <254d20lh2raerd347s2t8qpa8u1dcom3e0@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,b85ad1154737de24
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-02-08 12:09:48 PST
From: "Fraser Ross" <fraserATmembers.v21.co.unitedkingdom>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <40267a98@newsgroups.borland.com> <254d20lh2raerd347s2t8qpa8u1dcom3e0@4ax.com>
Subject: Re: CreateProcess
Date: Sun, 8 Feb 2004 19:58:48 -0000
Lines: 16
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 81.7.56.116
Message-ID: <40269570@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1076270448 81.7.56.116 (8 Feb 2004 12:00:48 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-08!supernews.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail