On Tue, 26 Jun 2007, Zhongli Xu wrote:
> Hi all,
>
> I tried to call another .exe file in my own exe file by using the system()
> API.
> But the return value of system() is -1 and errno is set to ENOENT. It
> indicates that the another exe file is not found.
That must be because you're calling t
On Di, 2007-06-26 at 15:06 +0800, Zhongli Xu wrote:
> I use the debug channel. Here is the output:
>
> [EMAIL PROTECTED] drive_c]# WINEDEBUG=+process,+exec wine ./System.exe
You should never use wine as root.
"root" is only for System-Maintenance.
--
By by ... Detlef
I've tried MSVC 6.0 and MSVC 2003. All the same - it works. Please, check your
sources. I have no idea where the bug can be.
> Yes, the mingw-gcc case works.
> But I use the Visual C++ 7.0 to compile. It still fails.
>
> On 6/26/07, Kirill K. Smirnov <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > I'v
Yes, the mingw-gcc case works.
But I use the Visual C++ 7.0 to compile. It still fails.
On 6/26/07, Kirill K. Smirnov <[EMAIL PROTECTED]> wrote:
Hi,
I've tried to reproduce, but failed:
a.c:
#include
#include
int main(void)
{
system("qqq.exe");
return 0;
}
$ mingw-gcc -mconsole -
Hi,
I've tried to reproduce, but failed:
a.c:
#include
#include
int main(void)
{
system("qqq.exe");
return 0;
}
$ mingw-gcc -mconsole -mno-cygwin a.c
$ wine a.exe
It works.
$ mingw-gcc a.c
$ wine a.exe
It works too.
Executable qqq.exe exists in ~/.wine/drive_c/windows directory.
On Tue, Jun 26, 2007 at 03:06:12PM +0800, Zhongli Xu wrote:
> I use the debug channel. Here is the output:
>
> [EMAIL PROTECTED] drive_c]# WINEDEBUG=+process,+exec wine ./System.exe
> trace:process:init_current_directory starting in L"C:\\" 0x10
> trace:process:__wine_kernel_init starting process
I use the debug channel. Here is the output:
[EMAIL PROTECTED] drive_c]# WINEDEBUG=+process,+exec wine ./System.exe
trace:process:init_current_directory starting in L"C:\\" 0x10
trace:process:__wine_kernel_init starting process name=L"C:\\System.exe"
argv[0]=L"./System.exe"
trace:process:set_entr
Hi all,
I tried to call another .exe file in my own exe file by using the system()
API.
But the return value of system() is -1 and errno is set to ENOENT. It
indicates that the another exe file is not found.
So I copy the another exe to the fake directory: C:\windoes\system32, since
wine always