Tech or Treat! Write an article about your scariest tech disaster to win gadgets!Learn more

x
?
Solved

Dos Programming

Posted on 1997-10-17
2
Medium Priority
?
353 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Accepted Solution

by:
phillips earned 150 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
The goal of this video is to provide viewers with basic examples to understand how to create, access, and change arrays 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.
Suggested Courses

649 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