Results 1 to 2 of 2

Thread: VC++ Related Question

  1. #1
    amac
    Guest

    VC++ Related Question

    When tracing through a program and you are watching a variable... say filename. Now filename happens to be a CString object.

    In the watch window the value of the CString object is shown in the second column as {"C:\whatever.txt"}; whereas, if it were another object it would just show {...}.

    Hopefully you now know what I am talking about and my question will make sense.


    How is this done? Is there an operator you have to write? or what?

    If anyone knows... please tell... because well I am curious and I wanna know.

    I looked at the header file... but didn't see anything special.

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    This is a feature of VC++. It doesn't have anything to do with code. I don't know exactly which criterias VC++ applies, but CRect or CPoint also show their values. Maybe because they have only a few members. You can try that: create a set of classes with different amounts of variables and track them. Maybe starting at a specific number of members VC++ won't show it anymore.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width