| | |
Graphical Dos Interface
Please support our C++ advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved |
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
)
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
) Last edited by tux4life; Jun 10th, 2009 at 7:06 am.
"Never argue with idiots, they just drag you down to their level and then beat you with experience."
•
•
•
•
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.
C++ Syntax (Toggle Plain Text)
#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; }
•
•
•
•
I cannot ____ because I use Turbo C++ 3.0 IDE
throw that shit out, and join the 21st Century
•
•
•
•
If possible could you please give an example.
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.
of course, then you will start having real questions for real problems, and we can just close this thread.
.
Last edited by jephthah; Jun 10th, 2009 at 5:46 pm.
Last edited by WaltP; Jun 11th, 2009 at 9:01 pm.
The 3 Laws of the Procrastination Society:
1) Never do today that which can be put off until tomorrow
2) Tomorrow never comes
1) Never do today that which can be put off until tomorrow
2) Tomorrow never comes
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.
.
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.
.
Last edited by jephthah; Jun 11th, 2009 at 9:13 pm.
•
•
•
•
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.

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
) "Never argue with idiots, they just drag you down to their level and then beat you with experience."
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.
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.
Siddhant Sanyam
(Not posting much)
My Blog: Yatantrika
Migrate to Standard C++ :When to tell your C++ Code is Non-Standard.
Please Read before posting: How To Ask Questions The Smart Way
(Not posting much)
My Blog: Yatantrika
Migrate to Standard C++ :When to tell your C++ Code is Non-Standard.
Please Read before posting: How To Ask Questions The Smart Way
![]() |
Similar Threads
- Starting Python (Python)
- was windows made with BASIC? (Legacy and Other Languages)
- Overview of UNIX (Getting Started and Choosing a Distro)
- Tutorial: Installing Debian Linux (3.1) (Getting Started and Choosing a Distro)
- I can't make my FTP work (Social Media and Online Communities)
- My win xp pro won't load up. (Windows NT / 2000 / XP)
- how to use the mouse to control a console-based c application written in borland c++ (C++)
- Repair a Mac: caused by Font trouble (OS X)
- High-Level Languages (Computer Science)
Other Threads in the C++ Forum
- Previous Thread: Static Objects of class within that class
- Next Thread: Form gets stuck but not when showing a MessageBox in the end of code
Views: 1249 | Replies: 23
| Thread Tools | Search this Thread |
Tag cloud for C++
6 add api array arrays beginner binary bitmap c++ c/c++ calculator char class classes code compile compiler console conversion convert count data delete desktop directshow dll encryption error file forms fstream function functions game getline givemetehcodez google graph homeworkhelper iamthwee ifstream input int integer java lazy lib linkedlist linux loop looping loops map math matrix memory microsoft newbie news node number output parameter pointer problem program programming project proxy python random read recursion recursive reference return sort string strings struct studio system template templates test text tree unix url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets






