Question:
computer programming?
2009-03-09 06:48:23 UTC
i am relatively new to c++ proramming so this might seem rather funny . I ve developed a few .exe files using turbo c++ which are rather open in dos prompt with a black background ? how can i make it a graphical user interface program ? Is there any way where i can develop it into a coloured backgrund and be more graphical ?
Four answers:
2009-03-16 11:36:41 UTC
Well dear...you can go to the link & there you can find the tips....!!!!



http://www.getgyan.com/show/370/C%2B%2B_Coding_Standards%3A_Process_and_Coding_Pattern
mmarrero
2009-03-09 07:47:17 UTC
Turbo C++ for DOS? For graphics you have to include . It's kinda weird but it's pretty good. Be sure to distribute bgi.lib and the fonts along with your .exe (there's a way to embed it to the .exe too). Btw, there's no mouse support, much less a GUI. You'll need to get info on DOS mouse calls.



You might check Allegro, or SDL for DOS if you really need a GUI.



For text applications I think you can use or . There's a bug in old Borland's CRT units which will cause an overflow error, check info on how to patch it. You can also write directly to CGA/VGA video RAM. Borland also has a text-gui library called Turbo Vision, but I have never used it.



Years ago I made a simple graphical GUI in Turbo Pascal and BGI. Send me an e-mail if you want the source code. It's mostly a MessageBox that can also work as a menu.
Tinashe Z
2009-03-09 07:06:21 UTC
Graphics in c++ is not an easy thing. It's nice to know people still have interest in c++. Depending on how graphical you want to get, you can use the graphics.h header file. Turbo is good just work closely with its help files. I use bloodshed and visual c++. You can also develop your own header files and save them as templates in future programs.



If you need any help relating to c++ and programming....

tinpetzee@yahoo.com



stay in-touch
Ambients
2009-03-09 07:01:01 UTC
You can read up on the Windows API and I think MFC library is what you're looking for. Either that or importing from the .Net library.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...