I'm new to ubuntu and code blocks...i like to create windows program in ubuntu using code blocks..Please Help me..:)
how to use windows command prompt in wine to run console application create in ubuntu
What is the command to run the wine console?
command to run directly from terminal:
wineconsole cmd
can we use wineconsole cmd as replacement of xterm??
Quote from: hamzaniazni on February 16, 2011, 04:38:49 PM
command to run directly from terminal:
wineconsole cmd
can we use wineconsole cmd as replacement of xterm??
You don't need that to run windows apps on linux if your system is set up correctly (binfmt-support).
wine (or wineserver should start automagically and (in most cases) seamless.
At least if I configure it as console app (also for gui apps) it works fine.
Tested on debian with a simple console project and a wxWidgets project with a library and a main (gui-)app, both compiled with MinGW32 cross-compiler, and wxWidgets cross-libs for the second.
Quote from: hamzaniazni on February 16, 2011, 04:38:49 PM
can we use wineconsole cmd as replacement of xterm??
No, because it is not a terminal emulator, but shell emulator or something like that...
ohhh...really??thanks...just i have dual boot with windows in my computer..ubuntu and windows...my group project used system("cls") to clear to program in console application..but the system("cls") doesn't work in ubuntu..except i used wine to run the windows excutable program through the wineconsole..so think by using wineconsole i can avoid this problem...when i build and run the program..it's run smoothly but onlu screen clear not working...any suggestion???
You can use:
#ifndef _WIN32
system("clear");
#else
system("cls");
#endif
Thanks...but not work....is there another way..to setting up code blocks to run wine dos console when i try to run the program...the situation is when i run exe file in debug folder it will open wine dos console...so the system cls will work...i had try alias cls='clear'..but also not work..or there are option to install ms-dos console in ubuntu..that i can use it to run my program from code blocks..thanks...