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 : http://www.uniqueness-template.com/devcpp/#step2

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:'(

You can't. graphics.h is not compatible with Dev-C++

I can do graphics in Dev- C++. I am using Dev-C++. :).
Just follow the instructions carefully and do not forget to put linkers. You can't do a graphics by making a new source file. You need to do a new project to put linkers.

I can do graphics in Dev- C++. I am using Dev-C++. :).
Just follow the instructions carefully and do not forget to put linkers. You can't do a graphics by making a new source file. You need to do a new project to put linkers.

Yes, but you are not using the 16-bit functions that are in graphics.h that is supplied with Turbo C. I vaguely recall something that someone made a port of graphics.h for 32-bit MS-Windows compilers.

Why would you want to use graphics.h anyway? It was written for dos, and almost no one runs dos now.

Hey LogicsLab,
You can easily solve this problem, DEV-C++ do support graphics.h with a 24-bit color mode, Ive developed many apps using that,
first : Download "graphics.h" and "libbgi.a" from :
http://www.cs.colorado.edu/~main/bgi/dev-c++/
Second:
Make a new console Application from File->New->Project
Third:
Copy both the downloaded files into the location where u've made the project
e.g c:\DEV-CPP>

Fourth:
Goto Project->Project Options-> Parameters and copy paste this in linker tab:
-L.
-lbgi
-lgdi32
-lcomdlg32
-luuid
-loleaut32
-lole32

Fifth:
add this line in the start of your main.cpp:
#include "graphics.h"

Sixth :
write this to main()

initwindow(800,600);

Now you can use any drawing function!
you can get them from:

http://www.cs.colorado.edu/~main/bgi/doc/
Enjoy!

thnx so much!
it works!

it not work :( :/

plzzzzzzz help me i wanna to use graphics in c++ dev

plzzzzzzz don't commit thread necromancy. If you need help, start a new thread.

That having been said, your question is too general, and isn't necessarily connected to the original post, which was about a specifc (and very, very, outdated) library that originally came with Turbo C++ for DOS. You will have to give us more information, starting with what operating system you are running under, what compiler or IDE you are using, and what library you mean to use if you have one already in mind. Standard C++ does not have any graphics support at all; it is a system-specific and/or library-specific function, so we'd have to know what you are programming for in order to help you.

Finally, this is a message board, not IRC or Twitter. You can and should post full messages, not a succession of short one-line posts.

hi Guys!
i am new plz tell me how to make banking software in Turboo C++ or Dev c++ plz anyone help me

Please make a separate thread for your question, as it is completely unrelated to both the original question and the post that revived the thread.

Also, when you do make a new thread, you'll need to have a much more specific question that the one you posted; this is far too broad a request for us to address as it is. You will need to give us a good deal more detail as to what you are trying to accomplish, including the purpose of the project (i.e., is it homework, a work assignment, etc.), how extensive a project it is (e.g., is this something that would actually be used by a real bank, or just a simulation of a bank system?), and what it is actually supposed to do.

Third, do not expect us to do you work for you. We are here to help new programmers to learn; doing your work for you only teaches you to cheat more. You will need to demonstrate to us that you have made a good-faith effort to solve the problem yourself, and ask intelligent and meaningful questions about the problem.

Fourth, I would recommend strongly against using Turbo C++, unless you are required to use it; it is over 25 years old, so the version of C++ it supports is outdated, and did not match the 'official' language even in its day. Similarly, the original Bloodshed Dev-C++ has not been updated in ten years, either; if you are going to use Dev-C++, I would reccommend getting the Orwell Dev-C++ fork, which is in continued development and uses an up-to-date version of GCC as its default compiler.

Finally, when posting here, please (not 'plz') use fully grammatical and correctly spelled English, without textspeak or other kinds of unnecessary abbreviations. Clear communication is a must in a technical forum. Typos are one thing - we all make mistakes - but deliberate misspellings (except for in humor) are right out.

Compiler: Default compiler
Building Makefile: "E:\Graphics\Makefile.win"
Executing make...
make.exe -f "E:\Graphics\Makefile.win" all
gcc.exe -c example1.c -o example1.o -I"C:/Dev-Cpp/include"

In file included from example1.c:1:
graphics.h:30:59: sstream: No such file or directory
In file included from example1.c:1:

graphics.h:224: error: syntax error before '' token
graphics.h:228: error: syntax error before '
' token
graphics.h:229: error: syntax error before '' token
graphics.h:235: error: syntax error before "getrefreshingbgi"
graphics.h:235: warning: data definition has no type or storage class
graphics.h:239: error: syntax error before '
' token
graphics.h:251: error: syntax error before "value"
graphics.h:256: error: syntax error before '=' token
graphics.h:269: error: syntax error before '=' token
graphics.h:278: error: syntax error before '=' token

graphics.h:300: error: syntax error before '=' token
graphics.h:306: error: syntax error before '=' token
graphics.h:310: error: syntax error before '=' token
graphics.h:324: error: syntax error before ':' token
graphics.h:325: error: syntax error before ':' token
graphics.h:326: error: syntax error before "std"

graphics.h:331: error: syntax error before '&' token
graphics.h:332: error: syntax error before "ismouseclick"
graphics.h:332: warning: data definition has no type or storage class
graphics.h:333: error: syntax error before "isresizeevent"
graphics.h:333: warning: data definition has no type or storage class
graphics.h:337: error: syntax error before "bool"
graphics.h:340: error: syntax error before '' token
graphics.h:340: warning: data definition has no type or storage class
graphics.h:341: error: syntax error before '
' token
graphics.h:343: error: syntax error before '*' token

make.exe: *** [example1.o] Error 1

Execution terminated

log in
password:

Welcome!
(1) Add
(2) View
(3) Search
(4) Exit
Choice:

Add Employee Record
Input no. of Employee:

the system is now ready to accept_

   employee records

   press any key to continue......

Add Employee Record

Employee Name:
  Year of Service:
  Numeric Rate:

Adding_Employee Record Successfully Done!

Back to Main Menu?[Y or N]_

View Employee Record

Employee Name Yr. of Service Numeric Rate Descriptive Rate
......
......
......

Sort: (1) Yr. of Service ASC

    (2) Numeric Rate ASC

Choice:_

                        Back to Main Menu?[Y or N]_

Search Employee Record

                                 Search:_
                  Processing.......(countdown)
                  _Record Found!

Employee Name Yr. of Service Numeric Rate Descriptive Rate

                                 Back to Main Menu?[Y or N]_

am using Dev c++ and i want to link graphic how can i do that,please somebody help me out

commented: the last post here was 5 years ago. Read and learn (or read and shiver, whichever takes your fancy). If you still have trouble, post a new question +16
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.