Does anyone know how to give a GUI look to your C++ "Console Application".

I cannot use Win32 API or any other template except the console application because I use Turbo C++ 3.0 IDE for development and I want my Application to be platform independent while using WIN32 API will limit it to Windows.

I am clear with arrays,switch,if,else if etc.

If possible could you please give an example.

Well you get built in options for the things you have asked both in Dev-Cpp and also Code Blocks...Try them.

Does anyone know how to give a GUI look to your C++ "Console Application".

I dont wanna use Win32 API or any other template except the console application because I use Turbo C++ 3.0 IDE for development and I want my Application to be platform independent while using WIN32 API will limit it to Windows.

I am clear with arrays,switch,if,else if etc.

If possible could you please give an example.

Same Question as above:
is it possible to design console base front end with Microsoft Visual C++ ?? console base application?
is there any plz help and guide.

> while using WIN32 API will limit it to Windows.
You're even MORE limited by your choice of compiler!.

I am always ready to shift to Visual C++ Express but not until I have the answer to this question.

Please mention some link of curses tutorials.

Please mention some link of curses tutorials.

I dont know which one to download from where and how to use it.

commented: Learn to use a search engie -2

>I dont know which one to download from where and how to use it.
So, STFW..
Salem has already told you twice to use curses( or ncurses or pdcurses) but look at you.... you are not even bothered.

Please mention some link of curses tutorials.

To the OP and every other noob who is to lazy to use a search engine:

http://tldp.org/HOWTO/NCURSES-Programming-HOWTO/
And all your ncurses related questions are covered here, including where to get it.

Wow, do you know how extremely difficult it was to get this link?
(It took me exactly 1 second by typing it in in Google and pressing the ENTER button on my keyboard :P)

Does anyone know how to give a GUI look to your C++ "Console Application".

I cannot use Win32 API or any other template except the console application because I use Turbo C++ 3.0 IDE for development and I want my Application to be platform independent while using WIN32 API will limit it to Windows.

I am clear with arrays,switch,if,else if etc.

If possible could you please give an example.

A graphics.h header file and set of .chr and .bgi files are needed to give GUI look.

#include <graphics.h>
...
..

int main()
{
    int gd=DETECT;  // Graphics Driver
    int gm;                 // Graphics Mode
  
    initgraph(&gd,&gm,"c:\\tc\\bgi");  // c:\\tc\\bgi - path for .chr and .bgi
    circle(200,200,30);
    cin.get();
    closegraph();
   
  return 0;
}
commented: How much of your immature programming would you post here. -2
commented: Unportable rubbish! -2
commented: how much more negative can your rep go? keep posting this junk, and we'll find out! whee! :) -2
commented: Hey jerkoffs, the OP said he's using TurboC 3.0! BGI and graphics.h is EXACTLY correct!!! What lame turkeys! You are correct adatapost! +19
commented: Although I think that the Turbo compiler is the worst possible choice now-a-days, you DID answer the OP's question, so I'm with WaltP on this one. +18

why don't you just use one of the platform independent GUI 3d party libraries, such as wxWindows, GTK+, or QT. I think wxWindows and GTK+ will both work with VC++ 2008 Express (although I have not tried it). QT is its own IDE which works with nearly any 32-bit compiler.

I cannot ____ because I use Turbo C++ 3.0 IDE

are you stuck in a time machine? or is it still 1990, where you live?

throw that shit out, and join the 21st Century

If possible could you please give an example.

Code::Blocks (free)
Visual C++ express (free)
Bloodshed Dev C++ (free)

I am always ready to shift to Visual C++ Express but not until I have the answer to this question.

I am always ready to answer your question, but not until you get a modern compiler that isnt gimped

of course, then you will start having real questions for real problems, and we can just close this thread.


.

>how much more negative can your rep go? keep posting this junk, and we'll find out! whee! - jephthah
>Unportable rubbish! - tux4life
>How much of your immature programming would you post here. - siddhant3s

Thanks for your comments. I posted the code as per poster's question.

commented: At least you are trying :) +36
commented: Approved! You can't help that the OP is still using that dinosaur compiler, you were just giving an appropriate answer to his question :) You get another chance from me! +8

^ ahaha.. your rep just went from -49 to 0 with one pity post by Dragon. LOL.

now look, here's your chance, adatapost: don't screw it up. think before you post. and get rid of your Turbo C compiler.

I am always ready to answer your question, but not until you get a modern compiler that isnt gimped

Then stop replying posts you have no intention of of adding constructive responses to!

Adatapost, you do not have to use a jephthah-approved compiler.

commented: Thanks +5

it's not "jephthah approved". it's "industry acceptable".

i felt my post was quite constructive: I gave several links to a variety of modern and free standard-C compilers without prejudice.

i mean, 3.0? we're talking vintage 1990. there's been a few changes to compilers and the C++ language in the past 20 years :)

but okay. you're right, i'm over the line again with my sarcasm and tone. apologies to those involved.

.

Then stop replying posts you have no intention of of adding constructive responses to!

Adatapost, you do not have to use a jephthah-approved compiler.

Agreed, but if you use such an old dinosaur compiler then you're nearly always forced to write non-jephthah approved code :P
In my opinion if you want to control the much loved powers of the C++ language, you should use a standard compiler, not such an old one, why else was C++ standardized ?? (<- yes Narue, I know you're going to give feedback on this :P)

I was to be with adatapost if he would have added a line such as ``This is what you want but please stop using a pre-historic compiler".

The fact is that the graphic.h header file won't never give OP, the curses look. The only thing it will do is to make the code Huge and un-tangible ( of course making it unportable too). Do think we should create our own rectangles and squares to create windows and buttons?

I know this character here which mostly posts Turbo C++ compatible code. I don't care what you do when you are with you: use turbo C ++ or any other older non standard compiler. But when you are in a community, please (at least try to) obey standards.

The point I want to highlight is ( which has now become difficult to prove) that the suggestion of graphic.h was not given after reading the OP's "I am on turbo C++" but was to be the default answer by him anyways (I told you it is difficult to prove this now.) Furthermore, the use of graphic.h won't do any good on Turbo C++ either.

I know the Green rep to him (after 3 red one) must be a matter of sympathy. If it was not, there was no need to neutralize the red dot.

> Then stop replying posts you have no intention of of adding constructive responses to!
>Adatapost, you do not have to use a jephthah-approved compiler.
What a shame!! You should appretiate the initiative taken by jephthah to turn OP as well as Adatapost into a standard code writer. Not everyone has this courage to say upon. He is not posting any destructive posting here. His (jephthah's) posts seems to be very valuable to me in this whole thread (after Salem's post).

Portable coding should be encouraged and never should be discouraged. The use of such creepy compilers make their user creepy and spoil the name of C++ developers, no doubt Linus remarked when asked why didn't he chose C++ to be the language for his kernel:
C++ made more horrible by the fact that a lot of substandard programmers use it, to the point where it's much much easier to generate total and utter crap with it. Quite frankly, even if the choice of C were to do *nothing* but keep the C++ programmers out, that in itself would be a huge reason to use C.

Start this movement: Migrate to standards. Migrate to Life. :)

commented: There you've got a good point :) You're just the kind of person we need on this forum. +8
commented: thanks +10

What about Turbo Vision?
(no not the one originally developed by Borland, but a completely compatible one which is more secure and which supports more compilers/platforms)
:)

Probably nothing wrong with Turbo Vision, but that's not the issue here. TVision is a library, not a compiler.

Probably nothing wrong with Turbo Vision, but that's not the issue here. TVision is a library, not a compiler.

Yea, but I was just giving another suggestion for: 'Graphical Dos Interface' :)
(And of course I did know that Turbo Vision isn't a compiler, but I agree with you that you still mention it because it could maybe confuse some other people)

As the OP is talking about DOS I would like to suggest another compiler (especially ported to DOS) as well...DJGPP, it's just such a fantastic compiler, and the utilities it comes with are also very likeable...

Edit:: And *forgot to mention* ... Turbo Vision works on it as well :P

I downloaded and tried to compile Turbo Vision with VC++ 2008 Express IDE (not using the makefile), but didn't have much luck. Tried using the makefile for vc compilers and that failed too, but did much better than when I tried it with the IDE solution I created.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.