• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
张纯睿
博客园    首页    新随笔    联系   管理    订阅  订阅

随笔分类 -  MySDK之2:字符串处理

CString 逆向查找字符串

摘要:AllInput 待查找的完整字符串,key 被查找的子字符串 { CString AllInput = GetAllTxt(); CString key = _T("/r/n")+strGuestName; CString strLastInput; CString stemp = AllInput; int pos = stemp.ReverseFind('/r'); while (pos>0) { CString sSub = stemp.Mid(pos); // 获得最后1行字符串 if (sSub.... 阅读全文
posted @ 2012-01-09 17:37 张纯睿 阅读(628) 评论(0) 推荐(0)
VC 中如何从字符串中分离文件名与路径+路径操作

摘要:#include "stdafx.h"#include "PathStringManager.h"CPathStringOper::CPathStringOper(void){}CPathStringOper::~CPathStringOper(void){}CPathStringOper::GetFolderPathFromFullPath(LPCTSTR lpszFullPath){ // 获取文件路径: // 注意不是“/”以结尾,因为使用过程中加上一个“/”容易,减去一个不容易 CString m_strOriFileName(lpszFullP 阅读全文
posted @ 2012-01-09 17:36 张纯睿 阅读(840) 评论(0) 推荐(0)
简单、简练的一句话搞定资源中字符串的读取和加载

摘要:简单、简练的一句话搞定资源中字符串的读取和加载、AfxMessageBox(CString((LPCTSTR)MSG_008) ); 阅读全文
posted @ 2012-01-09 17:35 张纯睿 阅读(120) 评论(0) 推荐(0)

博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3