954,483 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

graphics in C++

I have this project to do and I want to use coloured text and some simple shapes, etc. But the problem is that my compiler does not support graphics.h or dos.h. Even my tclite doesn't (I usually use BC5 windows version). Is there any way of correcting this problem? Or maybe another version which does support?

iamboredguy
Newbie Poster
23 posts since Aug 2004
Reputation Points: 12
Solved Threads: 0
 

You can use Win32 API to do that.
Nice example of using API @ http://www.daniweb.com/code/showsnippet.php?codeid=173

Any more questions? ->>[EMAIL=cppforlife@yahoo.com]cppforlife@yahoo.com[/EMAIL]

cppforlife
Newbie Poster
20 posts since Aug 2005
Reputation Points: 10
Solved Threads: 0
 

yaa you an do that but it will be unncessary burden for you
i'll suggest you to go for turbo c++ compiler in case you want use graphics
it fully supports it

SpS
Posting Pro
599 posts since Aug 2005
Reputation Points: 70
Solved Threads: 32
 
yaa you an do that but it will be unncessary burden for you i'll suggest you to go for turbo c++ compiler in case you want use graphics it fully supports it


Gooog. Don't recommend that compiler. Go and get a graphics lib like SDL or Allegro you can draw shapes with them.

prog-bman
Junior Poster
109 posts since Nov 2004
Reputation Points: 14
Solved Threads: 4
 
Gooog. Don't recommend that compiler. Go and get a graphics lib like SDL or Allegro you can draw shapes with them.


I agree with prog-bman! SDL is free and used a lot for games. For a short code snippet and how to download SDL take a look at: http://www.daniweb.com/code/snippet193.html

vegaseat
DaniWeb's Hypocrite
Moderator
5,986 posts since Oct 2004
Reputation Points: 1,345
Solved Threads: 1,417
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You