c++ - 如何从 CString 中删除一个单词
问题描述
我有以下存储文件路径的 CString 如何删除 Cstring AuthFile 的最后三个字符以更改文件名
CString AuthFile = m_strFileName;
// Remove last three charters of CString and replace with "auth"
AuthFile.Append("auth");
解决方案
推荐阅读
- command-line-arguments - Picocli:如何使子命令成为必需
- javascript - 验证用户银行仅用于使用条带激活帐户
- sql-server - 执行计划建议在不属于 where 子句的列上添加索引
- c - 多维数组 - fscanf
- c++ - C++ 返回一个 std::string &
- xaml - 如何在 FlexLayout 中包装标签
- teradata - 根据 Teradata 中的条件优先级填充列
- spring - 在实际持久化到数据库之前验证响应式请求的惯用方式
- reactjs - 当嵌套在 react-native-svg 中时,TouchableOpacity 不会触发点击
- excel-formula - Excel加生产时间除以总利润