Original Post
I am using 640x480x8 mode. I was successful creating the palette but when I set it to the primary surface i receive the error DDERR_INVALIDPIXELFORMAT. I have followed the code in the tutorials and in the dx7 help file, and it still gives me this error. All it says in the help is "The pixel format was invalid as specified."
If someone could tell me how I could fix this or what the problem is that would be very helpful.