You are here:

C/GRAPHICS

Advertisement


Question
i had written a program which includes a header file called graphics.h but as soon as i compile that program it prints bgi graphics not supported under windows
can u please help me to find out the bug

Answer
The Borland Graphics Interface (BGI) is very old and intended to run in DOS, not Windows.  I've seen a few people referencing BGI lately, and I would suggest that you find a different route for printing graphics.  The native Windows API is robust and easy to use, and MFC, with a bit more practice, can make things even easier.  If you are looking to draw simple 2D or 3D graphics, I recommend OpenGL as a place to start, though in most games these days, DirectX is the chosen route for rendering.

C

All Answers


Answers by Expert:


Ask Experts

Volunteer


Joseph Moore

Expertise

I've been programming in one form or another since my brother taught me BASIC when I was 6. I've been programing professionally since I was 20, first web development with HTML, JS, DHTML, CSS, etc., then I became a video game developer, writing code in C, C++, C#, SQL, assembly, and various scripting languages. I've even written my own scripting languages, custom designed for the games I was making. I also dabble in Java, PHP, and Perl. I've worked on pretty much every aspect of game development, including graphics, audio, gameplay, tool, UI, input, animation, and physics.

Experience

I've been writing C code for 12 years, both on my own in my spare time and professionally.

Organizations
IGDA

Education/Credentials
Bachelor of Science in Game Design and Development, Full Sail University, Winter Park, FL

Awards and Honors
Salutatorian and Advanced Achiever Awards at Full Sail; Independent Games Festival Student Showcase winner, 2004; Featured article on Gamasutra about an experimental game developed in 2004

©2012 About.com, a part of The New York Times Company. All rights reserved.