分类: 信息技术

12 篇文章

CString转URL编码
前言 在C++ MFC应用程序中可能需要将用户输入的字符转为URL编码。本函数可将CString转为URL编码。 代码(C++) CString URLEncode(CString strToEncode, CString strNoEncode=_T(""))// strNoEncode 为不编码的字符 { // 默认不转换的字符 if (str…