XVisualInfo class member
Hello, I am new to programming in Xlib or any kind of windowing enviroment for that matter. I am writing an application that may be used on a wide variaty of displays. It loads true color bitmaps into windows as part of a GUI; however there may be times when the display is only capable of handeling 256 colors. I need to create a colormap that can be loaded so that it will look the same on every computer that runs it, and I am trying to figure out what the class of my default visual is. XVisualInfo has a member named "class" that will tell me this information, but I can't access it because class is technically a keyword. Do anyone have a way around this?
I take it this is C++. Have you tried using it and compiling it, or is this just a suspicion?
Yes.. this is in C++, sorry for not listing that earlier. I have tryed to compile it, and it gives a compile error.
FDrawBitmap.cxx:1200: error: expected unqualified-id before 'class'
FDrawBitmap.cxx:1200: error: expected `;' before 'class'
Could you wrap it's access in a C file, compile that into an object file and link to it? That sounds like it might work.