Advertisement

debugging in window program

Started by January 23, 2003 02:14 AM
0 comments, last by skim 21 years, 9 months ago
I made a window program that draws simple shapes on a window, and I want to see the values of the variables I used to make the program. How do I see the values of the variables? On a normal I/O C/C++ program and a console program, I would use cout or printf to show the values of the variables but I know that doesn''t work on a window program.
Look into the "TextOut" function if you''re using GDI, or you may want to try using the debugger. It''s difficult to use it first, but the times I have used it, it has been very useful (and I''m sure even more as my programs get more complicated )
Peon

This topic is closed to new replies.

Advertisement