Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > C++ Programming
|
C++ Programming General discussions for the C++ language. For questions specific to Microsoft's Visual C++ variant, see the Visual C++ forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C++ Programming section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old December 11th, 2003, 09:37 AM
Registered User
 
Join Date: Dec 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Getting value contained by HANDLE

I wanted to get help on this
"Getting value contained by HANDLE" while debugging a pice of code in VC++ debugger.
It will be great help if anyone gives tips on this to me

Swarup
:)

------------------------------------
Swarup Panja
CA-TCG Software Pvt. Ltd.
Bengal Intelligent Park
Salt Lake
Kolkata-700091
Phone: 91 33 2357 5660-65; Ext: 117
Please Mail Me :
swarupp@catsglobal.co.in
Reply With Quote
  #2 (permalink)  
Old December 16th, 2003, 10:31 PM
Authorized User
 
Join Date: Jul 2003
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Are you talking about a variable named HANDLE? In the debugger, on the left pane on the bottom, there is an auto tab and a locals tab. If you step through your program, as those variables come into scope they should be listed along with their values.

When the pointer indicating what line the debugger is on is pointing at the line that initializes a variable, for instance something like this:

-> int Handle = 10;

the value shown for Handle will be a junk value because the debugger hasn't executed that line yet. If you take one more step through your program, then Handle should show the value 10.

You can also set up a watch window to constantly watch a certain variable. On the right pane on the bottom, click on one of the "Watch" tabs and type in the variable name, and the value should be displayed.
Reply With Quote





Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessing nodes contained in a variable geoGregory3 XSLT 2 March 12th, 2008 02:57 PM
Access/change html-tags contained in elementvalues polarbear XSLT 3 December 26th, 2007 07:23 AM
How to handle...? chawnu Pro PHP 1 December 8th, 2005 05:14 AM
Access to data contained on the clipboard. voneimin BOOK: Beginning Java 2 0 November 18th, 2003 12:25 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.