Solved

Dos Programming

Posted on 1997-10-17
2
340 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
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.

746 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now