Recommended Posts

When I typed in the tutorials word-by-word, everything works great. But, when I do anything from scratch, ChoosePixelFormat fails. I''m basically going through exactly the same steps as in the tutorials, and creating the windows with exactly the same specifications. It can''t be a problem with my hardware not supporting it, because I''m using the same pixel format I used in the tutorial. It can''t be a problem with the PIXELFORAMTDESCRIPTOR struct, because after it failed the first time I c&p''d it from the tutorials. I''ve tried everything I can possibly think of, and a whole bunch of things that would seem to have nothing to do with the problem, but it still never works. Finally, when I used FormatMessage with GetLastError, I get the message "The Operation Completed Successfully". (Also, I know that ChoosePixelFormat is setting the last error because before I called it I used SetLastError (1) and ChoosePixelFormat set it back to zero).
Please help, I''m kind of paralyzed trying to fix this problem.
-RWarden (roberte@maui.net)