首页 > 解决方案 > 如何从 CString 中删除一个单词

问题描述

我有以下存储文件路径的 CString 如何删除 Cstring AuthFile 的最后三个字符以更改文件名

        CString AuthFile = m_strFileName;
        
// Remove last three charters of CString and replace with "auth" 
        AuthFile.Append("auth");

标签: c++c++11c-strings

解决方案


推荐阅读