Screen Color

I’m having a problems with color.
I created a program using VB6, Win 98. My PC is set to true color (32bit). I created graphics for my program and they look great on my PC, but when I installed the program on a PC that also used Win 98 but is set for 256 color, the graphics look bad. How do I program to accommodate the different color settings between PCs without asking the user to change their color setting while using my program?
Thank you.
dlwulfeAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

dlwulfeAuthor Commented:
Adjusted points to 200
0
laeuchliCommented:
Palettes are the answer. I never did them in vb, but that is what you need to do. You will need to use the WinAPI functions:CreatePalette,SelectPalette, and  RealizePalette.  Basicly what you do, is you tell windows to keep x amount of colors out of 256, so that windows does not have to dither to get what you want. This is the only thing you can do short of upgrading the hardware.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
dlwulfeAuthor Commented:
Thanks. If you know, please tell me where I can get more information about that specific API function.
0
laeuchliCommented:
www.msdn.com will do the trick
0
laeuchliCommented:
Oh sorry, wrong link:msdn.microsoft.com
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.