I was testing a variable, the following are two lines:
TRACE(m_strDirectory);
TRACE("\nlength: %d\n", m_strDirectory.GetLength());
and the output is:
D:\Projects
length: 0
how come? Why the length is zero?
Thanks!
Sway
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 6 of 6
Thread: CString's GetLength mysteryThreaded View
|
Click Here to Expand Forum to Full Width |