Re: problem with exec,system,WinExec, C functions

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

 



At 2007-09-13 11:24, Romeo Petruca wrote:
>Hi,
>
>i'm using openwatcom under wine, all is ok, but next code will not work:
>
>#include <windows.h>
>void main( void ) {
>     system( "foo.exe" );
>}
>
>same problem for:
>
>#include <windows.h>
>void main( void ) {
>     WinExec( "foo.exe", SW_SHOW );
>}
>
>where "foo.exe" is a windows console aplication
>
>if i try to launch foo.exe with wine in a terminal window is working
>
>example:
>
>wine foo.exe
>
>is working fine !
>
>how can i make my code working ?
>
>--
>George Enescu 16/13
>Hunedoara
>mobil: 0720301842
>tel.   : 0354401534
>_______________________________________________
>wine-users mailing list
>wine-users@xxxxxxxxxx
>http://www.winehq.org/mailman/listinfo/wine-users

system() uses a shell to parse the command line. In the old days it 
used to be a Bourne shell. These days it is probably bash. So try:
         system("wine foo.exe");

Geoff 


_______________________________________________
wine-users mailing list
wine-users@xxxxxxxxxx
http://www.winehq.org/mailman/listinfo/wine-users

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

  Powered by Linux