API:PathAddBackslash Function
这个API个人感觉太简单了。。。就是在字符串的最后加一个反斜杠
ASSERT( m_szAppName[0] == _T('\0') );
_tcsncpy(m_szAppName, pszAppName, _countof(m_szAppName) - 1);
m_szAppName[_countof(m_szAppName) - 1] = _T('\0');
// eMule may not have the permission to create a DMP file in the directory where the "emule.exe" is located.
// Need to pre-determine a valid directory.
_tcsncpy(m_szDumpDir, pszDumpDir, _countof(m_szDumpDir) - 1);
m_szDumpDir[_countof(m_szDumpDir) - 1] = _T('\0');
PathAddBackslash(m_szDumpDir);
不过字符串拷贝值得学习