-
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.
-
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.