Re: Quick Watch for class?
- From: "William DePalo [MVP VC++]" <willd.no.spam@xxxxxxxx>
- Date: Sat, 31 Dec 2005 13:39:19 -0500
"Robby" <Robby@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:1C5CAB1D-9A00-467E-94E7-5C059EB19B57@xxxxxxxxxxxxxxxx
> I am wondering if someone call tell me how to watch the member data of a
> class, more particularly the cbWndExtra argument of wndClass. I would like
> to
> view the data of:
>
> wndClass.cbWndExtra
>
> while my program is running!
Why? What makes you think it is subject to change?
I could tell you to put a breakpoint in your program at a spot where
wndClass is in scope (say near the call to RegisterWindow() ) and type this
into the watch window
&wndClass.cbWndExtra
That yields the address of the count of the window's extra bytes.
You can then type that address into the watch window. The problem with that
is that chances are that that is an automatic (stack based) variable which
will go out of scope and hold some other seemingly random quantity.
If on the other hand, you are asking where does Windows store that value
then the answer is "you shouldn't care" as a window is an opaque structure
which you manipulate by means of a handle and a function accepting that
handle as argument.
Regards,
Will
.
- Follow-Ups:
- Re: Quick Watch for class?
- From: Robby
- Re: Quick Watch for class?
- Prev by Date: Re: CHECKER3...HMENU????
- Next by Date: Re: CHECKER3...HMENU????
- Previous by thread: STL errors with VS2005
- Next by thread: Re: Quick Watch for class?
- Index(es):
Relevant Pages
|
|