
How to determine how many colors the system has been set to
Here is a snipit I took out of my program. It calls the GetDeviceCaps API
function which you have to get out of your WINAPI program that came with
Visual Basic. You also need the BITSPIXEL type to do this which is in the
WINAPI also.
Dim r as long
r = GetDeviceCaps(hdc, BITSPIXEL)
If 2 ^ r < 256 Then
msgbox "You must have 256 colors to run this program!"
end
End If
If you have any problems feel free to reply to this newsgroup or e-mail me.
Thank You
Farshad Hemmati
President of CompuCated Technologies Inc.
Quote:
>I need to be able to determine if a system is running in 256 or greater.
>Can anyone help?
>Simon Parsons
>---------------------------------------------------------------