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