Article View: borland.public.cppbuilder.nativeapi
Article #4981Re: CreateProcess return error 126
From: Orlando Lopez
Date: Fri, 21 Oct 2005 22:51
Date: Fri, 21 Oct 2005 22:51
28 lines
1783 bytes
1783 bytes
>>Please show your actual code.
it's something like this:
...
String cmd = "cmd.exe /C " + this->AppPath + "FSUM.EXE -sha1 " + filein + ">"+fileout;
String prm = " -sha1 " + filein;
//ShowMessage("[DEBUG2] cmd = " + cmd);
STARTUPINFO si;
PROCESS_INFORMATION pi;
memset(&pi, 0, sizeof(pi));
memset(&si, 0, sizeof(si));
si.cb = sizeof(si);
si.dwFlags |= STARTF_USESHOWWINDOW;
si.wShowWindow |= SW_HIDE;
int res = CreateProcess(NULL, cmd.c_str(), NULL, NULL, TRUE,
0, NULL, this->AppPath.c_str(), &si,
&pi);
...
This code work fine on my machine and in a server (win Xp Eng &
win2k eng), but in a machine with winxp espnish I got an error.
(126L).
:s
Technical Details
Message-ID:
<435970ff$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!meganewsservers.com!feeder2.on.meganewsservers.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<43590889$1@newsgroups.borland.com> <43592d69$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,a3597fcd3a80013b X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Orlando Lopez" <hlopezrd@hotmail.com> Sender: "Orlando Lopez" <hlopezrd@hotmail.com> Reply-To: "Orlando Lopez" <hlopezrd@hotmail.com> Subject: Re: CreateProcess return error 126 Newsgroups: borland.public.cppbuilder.nativeapi X-User-Info: 200.88.217.55 References: <43590889$1@newsgroups.borland.com> <43592d69$1@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.66 Message-ID: <435970ff$1@newsgroups.borland.com> Date: 21 Oct 2005 15:51:43 -0700 X-Trace: newsgroups.borland.com 1129935103 207.105.83.66 (21 Oct 2005 15:51:43 -0700) Lines: 28 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!meganewsservers.com!feeder2.on.meganewsservers.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail