Re: Quick Watch for class?



"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


.



Relevant Pages

  • Re: Update or Refresh Form
    ... could you explain how to use the watch ... these debugging features. ... >and then add it to the watch window. ... >> It should echo back ...
    (microsoft.public.access.formscoding)
  • RE: VBScript debugger
    ... The watch window shows variable values only when you are running the ... function/sub where that variable is used, to trace a function/sub use F8, or ... etc) when running the vbscript debugger in my Access page I am trying ...
    (microsoft.public.access.modulesdaovba)
  • Re: <cannot view indexed property>
    ... The watch window cannot view properties that have an indexer. ... see the contents of an indexed property, specify the index as part of the ... You'll get an exception if the index you specify is out of range. ...
    (microsoft.public.dotnet.languages.vb)
  • RE: Debugging Issue
    ... returns the following in the watch window while in breakmode ... put a breakpoint within this scope and try. ... >> but either in the watch window or the immediate window I get an out of scope ...
    (microsoft.public.dotnet.general)