Re: What value does Wine return..?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



johne53 wrote:
> Hi there - I'm trying to run a Windows app programmatically (under Linux) by shelling to Wine - but I need to check its return value. Linux has various functions for obtaining a process ID but of course I end up with the ID for Wine, rather than the process being hosted. Using the process ID I can check the value returned when the process closes but once again, this retrieves the value returned by Wine.
> 
> I'm not exactly sure what Wine returns once the hosted app gets closed but whatever it is, it doesn't seem to be the value returned by the relevant app. Does anyone know what Wine returns and if there's any way to make it return the value that was returned by the hosted app?
> 
> Hope that all makes sense....  :)


What is returned? The return value from the app you run.

cat > test.c
int main(void) { return 42; }
^D
i586-mingw32msvc-gcc test.c -o test.exe
wine test.exe
echo $?

prints 42.






[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux