Call a windows application under linux c++

Hi there, I need to call a windows programme on a linux c++ code in order to finish my job. I do not know how to do this. Does anyone have some ideas?
Execute wine with the Windows program as a parameter.
Syntax is:
wine program [arguments ... ]
well, well, well..

you can use the system() function, and call wine. For example:

1
2
3
4
5
6
7
string cmd, str_name;

cout <<"Name of 'exe' file: "<<endl;
cin>> str_name;

sprintf(cmd, "wine %s", str_name);
return system(cmd);
Topic archived. No new replies allowed.