Solved

Dos Programming

Posted on 1997-10-17
2
342 Views
Last Modified: 2006-11-17
 How can i use more than 16 colors in graphics mode (using BC++ 4.5)?.Do i have to write my own '.bgi' file?
  I want my program to run fine for every video card (with enough video memory). Please tell me
0
Comment
Question by:blackdragon
2 Comments
 

Accepted Solution

by:
phillips earned 50 total points
ID: 1255909
In order to display more than 16 colors with BC++, you must use a SuperVGA BGI. BC++ 4.5 includes the "SVGA256.bgi" file;and I think that's what you need.

I think there isno need to make your program run with a simple VGA. Nowadays, almost everybody have a SVGA video card, so if you use this bgi, it will work in almost every computer.

You must remember one thing: You can set your own rgb palette, with your own colors; apart from the standar BGI's colors. Thisi is: you can send to the video card the palette you want (a 16 colors palette, a 256 colors palette, or a palette you have just read from a .gif file) using the 'outp()' function to the video port.

If you want I can send you an example in C of one of my programs.

I hope this will help

--phillips
0
 

Author Comment

by:blackdragon
ID: 1255910
 Please send me some of your source code to thanin@gear.kku.ac.th  
                              --Thank you--
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use for-loops in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use switch statements in the C programming language.

778 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question