Re: _bstr_t
Ah, I sure suspected we are missing on something by skipping
VC8... Still, VC9 is coming out soon enough and we are not
skipping that one.
--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@mvps.org
MVP VC FAQ: http://vcfaq.mvps.org
=====================================
"Alex Blekhman" <xfkt@oohay.moc> wrote in message
news:OFmR410pHHA.196@TK2MSFTNGP05.phx.gbl...
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