12.12.2012 Views

Teach Yourself Borland C++ in 14 Days - portal

Teach Yourself Borland C++ in 14 Days - portal

Teach Yourself Borland C++ in 14 Days - portal

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

426 Day 11<br />

7. Aga<strong>in</strong> load the DebugTst program you created earlier. Place a breakpo<strong>in</strong>t <strong>in</strong> the<br />

WatchBtnClick() function and run the program. When the breakpo<strong>in</strong>t is hit, use<br />

the Debug Inspector to <strong>in</strong>spect the WatchBtn.<br />

8. Write a program that does some simple th<strong>in</strong>gs when buttons are pressed (it doesn’t<br />

matter what exactly). Place calls to TRACE <strong>in</strong> each function <strong>in</strong> the program. Run the<br />

program and try each button. Close the program. View the OutDbg1.txt file <strong>in</strong> the<br />

Code Editor to see the results of the TRACE macro.<br />

9. Add several WARN calls to the program created <strong>in</strong> exercise 8. Run the program and<br />

aga<strong>in</strong> view the OutDbg1.txt file.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!