News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

How Using Wineconsole cmd in Code Blocks Ubuntu Platform as default console

Started by hamzaniazni, February 16, 2011, 12:34:57 PM

Previous topic - Next topic

hamzaniazni



I'm new to ubuntu and code blocks...i like to create windows program in ubuntu using code blocks..Please Help me..:)

hamzaniazni

how to use windows command prompt in wine to run console application create in ubuntu

oBFusCATed

(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

hamzaniazni

command to run directly from terminal:

wineconsole cmd

can we use wineconsole cmd as replacement of xterm??

Jenna

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.

oBFusCATed

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...
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

hamzaniazni

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???

oBFusCATed

(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

hamzaniazni

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...