Welcome Guest ( Log In | Register )




                Web Hosting Guide

2 Pages V   1 2 >  
Reply to this topicNew Topic
C++ Dos Graphics, How do I display graphics in dos?
Asphinx
post Jul 2 2005, 02:32 AM
Post #1


Newbie [ Level 1 ]
Group Icon

Group: Members
Posts: 2
Joined: 2-July 05
Member No.: 6,764


I have just started programming in c++ and have a DOS game set up that would benefit greatly from some graphics/animations. unfortunately, I have absolutely no idea how to go about this, and to amke matters worse, have no idea as to how to add graphics in general. so my question to everyone else is:
how do I add graphics to my dos application?
if it helps I am using the Dev-Bloodshed compiler, and would be willing to switch.

looking for help,
Asphinx
Go to the top of the page
 
+Quote Post
vizskywalker
post Jul 2 2005, 05:21 AM
Post #2


Techno-Necromancer
Group Icon

Group: Members
Posts: 1,018
Joined: 13-January 05
From: The Net
Member No.: 2,127


My main reason for disliking C++ is that it has no built in graphics support. You must find and download a library of grpahics functions. There are two routes to take. One is do a search for a VGA graphics library and the other is to get a DirectX library and learn DirectX. For a simple DOS game I recommend the former, or even switching to QBASIC.

~Viz
Go to the top of the page
 
+Quote Post
Zageyiff
post Jul 21 2005, 03:35 PM
Post #3


Newbie [ Level 2 ]
Group Icon

Group: Members
Posts: 17
Joined: 19-July 05
Member No.: 7,251


You should look for the Borland Graphics Interface.
It comes with the Borland C/C++ Compiler.

But I think you should change of compiler to these.

And search for help on using this.

The basic code for startin graphics using this is:
initgraph()
And to close you used:
closegraph()

So you cand add this code to a class, maybe called Graphics, and the contrutor may open graphics mode, and the destructor may close it.
Go to the top of the page
 
+Quote Post
spaceseel
post Aug 18 2005, 05:28 PM
Post #4


Newbie [ Level 2 ]
Group Icon

Group: Members
Posts: 20
Joined: 11-December 04
From: Colorado, USA
Member No.: 1,700


QUOTE (Asphinx @ Jul 1 2005, 07:32 PM)
I have just started programming in c++ and have a DOS game set up that would benefit greatly from some graphics/animations. unfortunately, I have absolutely no idea how to go about this, and to amke matters worse, have no idea as to how to add graphics in general. so my question to everyone else is:
how do I add graphics to my dos application?
if it helps I am using the Dev-Bloodshed compiler, and would be willing to switch.

looking for help,
Asphinx
*


You can start by doing a google search for VGA Graphics. VGA was used in most DOS games. There was one VGA graphics library that I found. But, I don't remember the website. The best way to create the graphics is to do a google for Deluxe Paint II enhanced. This program is probibally abandonware, but It was used to create the graphics for the old LucasArts™ games, like: Indiana Jones and the Fate of Atlantis, and other ones too.
Go to the top of the page
 
+Quote Post
neonprogrammer
post Sep 4 2005, 07:48 PM
Post #5


Newbie [ Level 1 ]
Group Icon

Group: Members
Posts: 9
Joined: 4-September 05
Member No.: 8,316


Although Dev c++ is best I recommend turbo c++ for Dos based graphics.I myself have made a project based on Hospital Management in entirely console mode.If you are not interested in windows and socket level programming right now then Dev c++ is of no use.Use instead turbo c++ an open source compiler from Borlond.Click below to download

http://bdn.borland.com/article/images/21751/tcpp101.zip

HOMEPAGE: http://bdn.borland.com/article/0,1410,21751,00.html

One simple example to Draw a circle in Dos based mode in turbo c++
CODE
#include <graphics.h>
#include <stdlib.h>
#include <stdio.h>
#include <conio.h>

int main(void)
{
  /* request auto detection */
  int gdriver = DETECT, gmode, errorcode;
  int midx, midy;
  int radius = 100;

  /* initialize graphics and local variables */
  initgraph(&gdriver, &gmode, "");

  /* read result of initialization */
  errorcode = graphresult();
  if (errorcode != grOk)  /* an error occurred */
  {
     printf("Graphics error: %s\n", grapherrormsg(errorcode));
     printf("Press any key to halt:");
     getch();
     exit(1); /* terminate with an error code */
  }

  midx = getmaxx() / 2;
  midy = getmaxy() / 2;
  setcolor(getmaxcolor());

  /* draw the circle */
  circle(midx, midy, radius);

  /* clean up */
  getch();
  closegraph();
  return 0;
}


This post has been edited by miCRoSCoPiC^eaRthLinG: Nov 26 2005, 05:37 AM
Go to the top of the page
 
+Quote Post
Vyoma
post Nov 26 2005, 05:12 AM
Post #6


Cosmic Overlord
Group Icon

Group: Members
Posts: 571
Joined: 26-November 05
From: Denver, Colorado, US
Member No.: 9,811
myCENTs:45.66


I am not very sure as to your expertice with compilers and also the language as such. The way you described, it reminds me of days when I started doing graphics programming in C.

What I would suggest now are few guidelines. Decide on how you are going to proceed on this guidelines and ask for details. I would be able to help.

1. As suggested above, use the Borland Graphics API. This would be good if you are in the initial phase and want to learn the basics of graphics.

2. You are a good programmer in C, then you might try a bit of hand on the VGA dos routines. I believe they are the 21h routines. I do not remember exactly, but would look up and tell more if you are going this way. But I must warn you that this would require a bit of machine knowledge - that is, some assemble basics.

3. After about a year of programming for graphics and games, I ended up with this option. Use Allegro graphics package along with the DJGPP, a 32-bit C/C++ development system for Intel 30386+ PCs running under DOS. The two of them work amazingly together, giving a robust executable in the end. Links: Allegro, DJGPP. Both of these are open source, that means you do not need to pay anything for using them. What more? You dont need to pay anything for the products you launch using them - you do not need to give them a royalty.

OK. I would better stop now, lest it would seem that I am spamming. sad.gif

tongue.gif Anyways, I will track this topic, so if you need anything, ask here, and I will see what my rusty brain can find and reply. biggrin.gif
Go to the top of the page
 
+Quote Post
prorip
post Nov 27 2005, 10:52 PM
Post #7


Newbie [ Level 1 ]
Group Icon

Group: Members
Posts: 4
Joined: 27-November 05
Member No.: 9,835


Here is a website that has alot of older Gra[phic libaries and code sample for DOS, Win32, Linux etc.

http://www.geocities.com/SiliconValley/Vista/6552/l5.html

There is the classic VESA for dos which I think is like what DirectX is for the new Windows range. There are quite a few other libary's and also they do take advatage of the older and smaller video cards. This could be a disadvantage though if you have a newer video card as these libaries what support alot of its features. Plus you would probably need to get a dos driver for you video card.
Go to the top of the page
 
+Quote Post
marsden
post Jun 8 2006, 09:38 AM
Post #8


Newbie [ Level 1 ]
Group Icon

Group: Members
Posts: 5
Joined: 27-May 06
Member No.: 13,682


Here is a coded picture for a DOS window. I forget the program that was used to create it. I was in school then and someone in my team did the pictures while the rest of the team were coding actions. This picture will display a picture of a church right in the DOS window. Maybe searching for DOS graphics software will net the program that made this code.
CODE

/********************************************************************/
void Pic::mainpic()//picture of the church
/********************************************************************/
{
        unsigned char TITLE [] = {
    ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  ' ',  ' ',  ' ',  ' ',  '³',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  ' ',  'Ü',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  'Ä',  'Ä',  'Ä',  'Ä',  'Ä',
    ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  '³',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  'ß',  'Û',  'ß',
    ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  ' ',  ' ',  '³',  ' ',  ' ',  ' ',  '³',  ' ',  ' ',  ' ',  ' ',
    ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  '³',  ' ',  ' ',
    ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  'Û',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  '³',
    ' ',  ' ',  ' ',  '³',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  ' ',  ' ',  ' ',  ' ',  '³',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
    'Ü',  'Ü',  'Ü',  'Ü',  'Ü',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  'Ä',  'Ä',  'Ä',  'Ä',  'Ä',
    ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  '³',  ' ',  ' ',  ' ',  ' ',  ' ',  'ß',  'Û',  'Û',  'Û',  'Û',
    'Û',  'ß',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  ' ',  ' ',  '³',  ' ',  ' ',  ' ',  '³',  ' ',  ' ',  'Ä',  'Ä',
    'Ä',  ' ',  ' ',  '³',  'Ä',  'Ä',  'Ä',  ' ',  ' ',  '³',  'Ä',  'Ä',
    ' ',  ' ',  ' ',  'Ú',  'Û',  'Ý',  '³',  'Þ',  'Û',  '¿',  ' ',  ' ',
    ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  '³',
    ' ',  ' ',  ' ',  '³',  ' ',  ' ',  '³',  ' ',  '³',  ' ',  ' ',  '³',
    ' ',  ' ',  ' ',  ' ',  ' ',  '³',  ' ',  '³',  ' ',  ' ',  ' ',  '³',
    'Û',  'Ý',  'ê',  'Þ',  'Û',  '³',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  '³',  ' ',  ' ',  ' ',  '³',
    ' ',  ' ',  '³',  ' ',  ' ',  ' ',  ' ',  '³',  'Ä',  'Ä',  'Ä',  ' ',
    ' ',  '³',  ' ',  '³',  ' ',  ' ',  ' ',  'Þ',  'Û',  'Û',  'Û',  'Û',
    'Û',  'Ý',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  ' ',  ' ',  '³',  ' ',  ' ',  ' ',  '³',  ' ',  ' ',  '³',  ' ',
    ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  ' ',  'Ü',  'Ü',  'Ü',  'Ü',  'º',  'Ü',  'Ü',  'Ü',  'Ü',  ' ',
    ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  '³',
    ' ',  ' ',  ' ',  '³',  ' ',  ' ',  '³',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  'Ý',  'Û',  'Û',
    'Û',  'Û',  'º',  'Û',  'Û',  'Û',  'Û',  'Þ',  ' ',  ' ',  ' ',  ' ',
    ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  ' ',  'Û',  'Û',  '²',  'Ý',  'Û',  'Û',  'Û',  'Û',  'º',  'Û',
    'Û',  'Û',  'Û',  'Þ',  '²',  'Û',  'Û',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  'Ü',  'Ü',  'Û',  'Û',  'Û',
    '²',  'Ý',  'Û',  'Û',  'Û',  'Û',  'º',  'Û',  'Û',  'Û',  'Û',  'Þ',
    '²',  'Û',  'Û',  'Û',  'Ü',  'Ü',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  ' ',  'Ü',  'Û',  'ß',  'ß',  'Û',  'Û',  '²',  'Ý',  'Û',  'Û',
    'Û',  'Û',  'º',  'Û',  'Û',  'Û',  'Û',  'Þ',  '²',  'Û',  'Û',  'ß',
    'ß',  'Û',  'Ü',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  'Û',  'Û',  'Ä',
    'Å',  'Å',  'Ä',  'Û',  '²',  'Ý',  'Û',  'ß',  'ß',  'ß',  'ß',  'ß',
    'ß',  'ß',  'Û',  'Þ',  '²',  'Û',  'Ä',  'Å',  'Å',  'Ä',  'Û',  'Û',
    ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  ' ',  ' ',  ' ',  'Û',  'Û',  'Û',  'Ä',  'Å',  'Å',  'Ä',  'Û',
    '²',  'Ü',  'ß',  'Í',  'Í',  'Í',  'Í',  'Í',  'Í',  'Í',  'ß',  'Ü',
    '²',  'Û',  'Ä',  'Å',  'Å',  'Ä',  'Û',  'Û',  'Û',  ' ',  ' ',  ' ',
    ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  'Ü',  'Û',  'Û',  'Û',  'Û',  'Ü',  ' ',  ' ',  ' ',  ' ',  'Ü',
    'Ü',  'Ü',  '²',  'Ü',  'Ü',  'Ü',  'Ü',  'ß',  'ß',  'Í',  'Í',  'Í',
    'Í',  'Í',  'Í',  'Í',  'Í',  'Í',  'Í',  'Í',  'ß',  'ß',  'Ü',  'Ü',
    'Ü',  'Ü',  '²',  'Ü',  'Ü',  'Ü',  ' ',  ' ',  ' ',  ' ',  'Ü',  'Û',
    'Û',  'Û',  'Û',  'Ü',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  ' ',  'Ü',  'Û',  'Û',  'Û',  'Ü',  ' ',  ' ',  '²',  '²',  '²',
    '²',  '²',  '²',  '²',  '²',  '²',  '²',  'Û',  'Û',  'Û',  '²',  'Û',
    'Û',  'Û',  'Ü',  'º',  'º',  ' ',  'É',  'Í',  'Í',  '»',  'º',  'É',
    'Í',  'Í',  '»',  ' ',  'º',  'º',  'Ü',  'Û',  'Û',  'Û',  '²',  'Û',
    'Û',  'Û',  '²',  '²',  '²',  '²',  '²',  '²',  '²',  '²',  '²',  '²',
    ' ',  ' ',  'Ü',  'Û',  'Û',  'Û',  'Ü',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  '±',  '±',
    '±',  '±',  '±',  '±',  '±',  '²',  '²',  '²',  '²',  '²',  '²',  '²',
    '²',  '²',  '²',  'Û',  'Û',  'Û',  '²',  'Û',  'Û',  'Û',  'Û',  'º',
    'º',  'Ý',  'È',  'Ä',  'Ä',  'Ù',  'º',  'È',  'Ä',  'Ä',  'Ù',  'Þ',
    'º',  'º',  'Û',  'Û',  'Û',  'Û',  '²',  'Û',  'Û',  'Û',  '²',  '²',
    '²',  '²',  '²',  '²',  '²',  '²',  '²',  '²',  '±',  '±',  '±',  '±',
    '±',  '±',  '±',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  '±',  '±',  '±',  '±',  '±',  '±',
    '±',  '²',  '²',  '²',  '²',  '²',  '²',  '²',  '²',  '²',  '²',  'Û',
    'Û',  'Û',  '²',  'Û',  'Û',  'Û',  'Û',  'º',  'º',  ' ',  'É',  'Í',
    'Í',  '»',  'º',  'É',  'Í',  'Í',  '»',  ' ',  'º',  'º',  'Û',  'Û',
    'Û',  'Û',  '²',  'Û',  'Û',  'Û',  '²',  '²',  '²',  '²',  '²',  '²',
    '²',  '²',  '²',  '²',  '±',  '±',  '±',  '±',  '±',  '±',  '±',  ' ',
    ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  ' ',  '±',  '±',  '±',  '±',  '±',  '±',  '±',  '²',  '²',  '²',
    '²',  '²',  '²',  '²',  '²',  '²',  '²',  'Û',  'Û',  'Û',  '²',  'Û',
    'Û',  'Û',  'Û',  'º',  'º',  ' ',  'È',  'Ä',  'Ä',  'Ù',  'º',  'È',
    'Ä',  'Ä',  'Ù',  ' ',  'º',  'º',  'Û',  'Û',  'Û',  'Û',  '²',  'Û',
    'Û',  'Û',  '²',  '²',  '²',  '²',  '²',  '²',  '²',  '²',  '²',  '²',
    '±',  '±',  '±',  '±',  '±',  '±',  '±',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  '±',  '±',
    '±',  '±',  '±',  '±',  '±',  '²',  '²',  '²',  '²',  '²',  '²',  '²',
    '²',  '²',  '²',  'Û',  'Û',  'Û',  '²',  'Û',  'Û',  'Û',  'Û',  'º',
    'º',  'Ý',  'É',  'Í',  'Í',  '»',  'º',  'É',  'Í',  'Í',  '»',  'Þ',
    'º',  'º',  'Û',  'Û',  'Û',  'Û',  '²',  'Û',  'Û',  'Û',  '²',  '²',
    '²',  '²',  '²',  '²',  '²',  '²',  '²',  '²',  '±',  '±',  '±',  '±',
    '±',  '±',  '±',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  ' ',
    ' ',  ' ',  ' ',  ' ',  ' ',  ' ',  '±',  '±',  '±',  '±',  '±',  '±',
    '±',  '²',  '²',  '²',  '²',  '²',  '²',  '²',  '²',  '²',  '²',  'Û',
    'Û',  'Û',  '²',  'Û',  'Û',  'Û',  'Û',  'º',  'º',  ' ',  'È',  'Ä',
    'Ä',  'Ù',  'º',  'È',  'Ä',  'Ä',  'Ù',  ' ',  'º',  'º',  'Û',  'Û',
    'Û',  'Û',  '²',  'Û',  'Û',  'Û',  '²',  '²',  '²',  '²',  '²',  '²',
    '²',  '²',  '²',  '²',  '±',  '±',  '±',  '±',  '±',  '±',  '±', ' '};
    int ctr;
    for(ctr = 0;ctr <= 1750;ctr++)
    cout<<TITLE[ctr];
Go to the top of the page
 
+Quote Post
polarysekt
post Oct 31 2006, 01:17 AM
Post #9


Advanced Member
Group Icon

Group: Members
Posts: 128
Joined: 12-February 05
From: St. Louis, MO
Member No.: 2,612


QUOTE(Asphinx @ Jul 1 2005, 08:32 PM) [snapback]42341[/snapback]

I have just started programming in c++ and have a DOS game set up that would benefit greatly from some graphics/animations. unfortunately, I have absolutely no idea how to go about this, and to amke matters worse, have no idea as to how to add graphics in general. so my question to everyone else is:
how do I add graphics to my dos application?
if it helps I am using the Dev-Bloodshed compiler, and would be willing to switch.

looking for help,
Asphinx



I don't think DevC++ compiles for DOS. As far as I know it compiles console-mode programs, but I'm pretty sure they require the win32 libraries - check your compiled executable for dependencies and you may find "MSVCRT.DLL" - if this is the case, your program won't even run in DOS with your compiler.

I would recommend you give up the oldschool and move to a more supported GUI. There are plenty of multiplatform libraries out there that are very simple, and work well with DevC++.

Check out SDL - the Simple Directmedia Layer. You can find it on Google quite easily, along with how to use it in DevC++ - assuming you're not using the Package Manager (which I don't recommend).


As for DOS, you'll get like .002% support and user base - and you'll be stuck with pretty much useless code that has trouble even in windows. (I was mad when I was no longer able to use INT 10, 13, and 33 for keyboard, video, and mouse) - but if you want DOS - I too would recommend an old borland system - although... eck - it's like black and white CRT television.
Go to the top of the page
 
+Quote Post
iGuest
post Nov 23 2008, 01:12 AM
Post #10


Newbie [ Level 1 ]
Group Icon

Group: Members
Posts: 0
Joined: 1-November 07
Member No.: 25,869


about c++ programming using the graphics.h
C++ Dos Graphics

How can I make my own c++ program using the graphics.H.Can you lend me some ideas about it. And also we have must have 5 page program.And if we run it,it will appear a 5 different shapes.So I'm hoping that you can help me. Thanks. 
 
-reply by bernadette
Go to the top of the page
 
+Quote Post

2 Pages V   1 2 >
Reply to this topicNew Topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No New Posts   11 nightfox 5,260 20th February 2010 - 06:31 AM
Last post by: iG-stevie
No new 19 webdesignunlimited 4,954 6th January 2010 - 03:30 PM
Last post by: iG-mazari
No New Posts   0 evought 380 1st January 2010 - 04:42 AM
Last post by: evought
No new   19 abhiram 3,205 25th October 2009 - 07:38 PM
Last post by: iG-Egglet
No New Posts   0 starscream 249 24th September 2009 - 06:23 PM
Last post by: starscream
No New Posts   10 SadElated 5,003 19th August 2009 - 01:25 PM
Last post by: iG-SimplyWeird
No New Posts   10 Senor_Grunt 1,143 27th April 2009 - 11:40 AM
Last post by: Atomic0
No New Posts   9 cursosdeinglesml 2,993 6th December 2008 - 06:22 PM
Last post by: xboxrulz
No New Posts   13 turbopowerdmaxsteel 2,050 24th November 2008 - 01:58 PM
Last post by: iG-imran
No New Posts   2 NelsonTR4N 530 14th October 2008 - 07:20 AM
Last post by: Atomic0
No new   68 specter 8,518 5th October 2008 - 09:00 AM
Last post by: Quatrux
No New Posts   11 dipesh 1,417 3rd August 2008 - 03:17 PM
Last post by: xboxrulz
No New Posts   8 PureHeart 4,550 13th May 2008 - 01:36 AM
Last post by: Janette
No New Posts   6 Orannis 891 19th April 2008 - 05:32 PM
Last post by: zaste
No New Posts   5 java-area 1,241 9th April 2008 - 01:54 PM
Last post by: java-area


Web Hosting Powered by ComputingHost.com.
HONESTY ROCKS! truth rules.
Creative Commons License