
c++
学习是一种状态
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
C++字符串的转换UTF8、string、wstring间的转换
utf8转string,可以先utf8转到unicod,unicode再转string。代码如下: string LoginUtils::UTF8ToString(const string &str){ wstring wstr = UTF8ToUnicode(str); return WStringToString(wstr);}std::wstring ...转载 2019-01-28 09:46:30 · 1980 阅读 · 0 评论 -
C++ 默认浏览器 打开网址和打开指定exe
启动默认浏览器打开网站VOID LoginUtils::OpenHttp(string url){ const TCHAR szOperation[] = _T("open"); HINSTANCE hRslt = ShellExecute(NULL, szOperation, url.c_str(), NULL, NULL, SW_SHOWNORMAL);}打开本地exe...原创 2019-01-28 09:57:57 · 1860 阅读 · 0 评论 -
C++ string Split分割字符串
//参数1:要分割的字符串;参数2:作为分隔符的字符;参数3:存放分割后的字符串的vector向量void Split(const std::string& src, const std::string& separator, std::vector<std::string>& dest) //字符串分割到数组{ string str = src; s...转载 2019-01-28 11:33:21 · 576 阅读 · 0 评论 -
c++ 输入法导致玩家玩游戏的时候卡顿:ImmAssociateContext
用到的头文件#pragma comment (lib ,"imm32.lib")(不需要#include <imm.h>)C++ 的代码如下: HIMC hIMC = null HWND hWnd = FindWindow(NULL,"AAA"); // 获取窗口句柄,AAA为窗口的名字 hIMC = ImmAssociate...原创 2019-03-18 17:54:25 · 1314 阅读 · 0 评论