Re: conditionnal breakpoint with Cstring by Victor
Victor
Mon Dec 10 08:19:47 PST 2007
Frank-O wrote:
> May be it is an obsvious question but i'll still asking
>
> How to set a conditional breakpoint with a string variable in Visual
> studio 2005
> something like :
> BB.CompareNocase(_T("toto")) == 0 => CXX0052
> or BB == _T("toto")
You can create a conditional breakpoint only with built-in types.
If you need to verify the "toto" string, you need to put 5 separate
equality operators:
BB.m_pszData[0] == 't' && BB.m_pszData[1] == 'o' && BB.m_pszData[2] ==
't' && BB.m_pszData[3] == 'o' && BB.m_pszData[4] == 0
(or something similar to that).
Ugly.
V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask