Hi pals, I am a Newbie in C++ Programming field. I plan to add graphics.h header class in Dev -C++ Version 4.9.9.2 from Bloodshed which is come along with Borland Compiler. I follow the Steps in URL : [url]http://www.uniqueness-template.com/devcpp/#step2[/url] But I Got Error in the Sample code which test the Working , Please Help me to get away from this problem . I am waiting to hear from you. Regards Anes P.A:'(

Member Avatar
Member Avatar
+1 forum 14

#include "graphics.h" #include <stdlib.h> #include <stdio.h> #include <conio.h> #include<iostream> using namespace std; int main(void) { /* request autodetection */ int gdriver = DETECT, gmode, errorcode; int midx, midy; /* 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()); /* for centering screen messages */ settextjustify(CENTER_TEXT, CENTER_TEXT); /* output a message to …

Member Avatar
Member Avatar
+0 forum 4

Hi. i need some help with this game i want to simulate with c++ (with the graphics.h library). i want to make a replica of Pacman. i already built the map, but now i got stuck: #1. i don't know how can i avoid the walls/obstacles (i have a blurry idea of an array (but i don't know if the array will suite the map i've drawn); #2. i can't get the arrow input. for ex. if the user presses the right arrow, the appropriate drawing function will be called... i've attached the code too ty

Member Avatar
Member Avatar
+0 forum 27

Hi. I just got a problem running my graphics program written using C language in DOS Box. There may seem a problem using the graphics.h running through DOSBox in Windows 7 ultimate 64bit. The program just flickers fasts when I run it. I know that my program is correct and should be running correctly, though there may seem wrong with the set up of my DOSBox. Can you please help me? Thank You.

Member Avatar
Member Avatar
+0 forum 2

Can anyone please tell me how to use the built in graphics in c++.Is there any tutorial on this?Which graphics will be suitable for using in c++?If there is any tutorial on this,please give the link. Thanks in advance.

Member Avatar
Member Avatar
+0 forum 8

I **want to draw a magnifying glass using <graphics.h> ** in Turbo C++ (a DOS-based compiler for C++), which is mostly user as "Search" icon. But, I am having problems in making the rectangle attached to the two circles (one inscribed on another). I've also included the screenshot (made in PowerPoint) on how the output will look like, even I've made most of the part, except the *search icon (magnifying glass*). How can I draw and colour it using floodfill(). Can you guys please help me? The Link for the screenshot is : https://docs.google.com/file/d/0B0soGRNZOS7sak9hSXk2aW9EOFE/edit?usp=sharing Thanks, in advance! :)

Member Avatar
Member Avatar
+0 forum 2

hey... I'm coding a program for my school project and i have come across a very different problem!! I was using graphics.h in my program... everything is running great.. even graphics are doing well... but after some time... that is after some input... the size of the text shrinks... and it shrinks after every command and in d end it is a block as if all the text is shrinked into a block... and even the program stops after the maximum shirnking..... is dere some problem with the memory?? is it because of many function calls and storage... because it …

Member Avatar
Member Avatar
+0 forum 3

I am having TurboC installed in my system. Whenever I try to run a program written in C++ using graphics.h, the screen goes blank and my LED monitor displays a change to VGA mode and suddenly displays "NO SIGNAL" and return to normal mode when I press "alt+ctrl+del" only. I have to stop the whole IDE to get back. I can't figure out what the problem is. Looking for some help. Thank you.

Member Avatar
Member Avatar
+0 forum 1

Well the following code I used to run graphics.h functions in windows xp CODE: int driver,mode; driver=DETECT; mode=DETECT; initgraph(&driver,&mode,"c:\\tc\\bgi"); Without this code functions of graphics.h (circle, line, arc etc.) did not run But in windows 7 this code is not working c++ is showing errors ….Well I am using the same version of turbo c++ I used in windows xp Now, is there any new version of c++ for windows 7 who will run the code OR is there any alternative code which will run the functions of graphics.h I just want my compiler not to show errors when I …

Member Avatar
Member Avatar
-1 forum 2

The graphics.h header file is not running in turbo c++ 4.5, why? [CODE]#include<graphics.h> #include<conio.h> void main() {     int gd=DETECT, gm;     initgraph(&gd, &gm, "c:\\turboc3\\bgi " );     circle(200,100,150);     getch();     closegraph(); } [/CODE] Please give me a link to download c-graphics tutorial?

Member Avatar
Member Avatar
+0 forum 2

Iam using ubuntu 10.04 LTS.I have a problem in including graphics.h in the g++ compiler I am using.I have nearly tried all the possible solutions given while i googled about it. Please help me .I am a beginner to programming.

Member Avatar
Member Avatar
+0 forum 4

hey xpert i'm class 12 cbse student...unfortunately i'm not able to get the output from my project. the project is based on bank employee detail.........i'm gettin the output ,but the thin is xcept aading records of the employee i'm not able to do other operation like modifiaction,deletion,listing...!!!!!!! your will be appreciated>.>!!!! ;) [CODE] //A PROGRAM TO MANAGE BANK ADMINISTRATION #include<fstream.h> #include<conio.h> #include<stdlib.h> #include<stdio.h> #include<iomanip.h> #include<string.h> #include<graphics.h> #include<dos.h> void graphic_screen(); class group { private: struct person { char flag; char empcode[5]; char name[40]; int age; int sal; }p; fstream file; public: group(); void addrec(); void listrec(); void modirec(); void delrec(); void …

Member Avatar
Member Avatar
-3 forum 2

The WinBGI package allows you to do some of the Borland BGI graphics in a specially created window form. So don't throw out the old Borland manuals, you can still use them to do some fancy graphing! Yes, you can gotoxy() again! This code was modified for Dev-C++, a real workhorse come to think of it. Thanks free_eagle for getting this started!

Member Avatar
+1 forum 0

The End.