|
-
Oct 23rd, 2001, 11:01 PM
#1
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.
-
Oct 24th, 2001, 11:51 AM
#2
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|