Hey everyone,
I'm trying to port my game to DirectX right now, and I'm having quite the time. My biggest problem is debugging, since I can't pop up messageboxes like I could when I was using GDI (or so I think), so I can't really tell if my functions are returning error codes - in other words, my code doesn't work and I don't know what functions are fouling up. Another frustrating thing is that it won't run in the debugger, so I can't run through the code step by step, and see where it crashes. So my question is:
Is there any easy way to figure out what variables hold what values at any given point in a program? Or, for that matter, is there any way of alerting myself if an error occurs?
P.S. Not too related, but does anybody know of any DirectDraw function that will crash a prog if a surface is invalid or something? That's my latest pet peeve - finding it out.