05 2017 档案

Qt 登录面板demo
摘要:QLabel *pImageLabel = new QLabel(this); QLineEdit *pUserLineEdit = new QLineEdit(this); QLineEdit *pPasswordLineEdit = new QLineEdit(this); QCheckBox 阅读全文

posted @ 2017-05-19 17:08 阿兴的平凡世界 阅读(266) 评论(0) 推荐(0)

c++ _popen读取管道内容(输出内容)例子
摘要:FILE * pPipe = _popen(_postExEPath.toStdString().c_str(), "rb");QString strData;if (pPipe){ while (!feof(pPipe)){std::string tempStr(1024, '\0');fgets 阅读全文

posted @ 2017-05-19 15:27 阿兴的平凡世界 阅读(6699) 评论(0) 推荐(0)

git配置代理命令
摘要:// 查看当前代理设置 git config --global http.proxy // 设置当前代理为 http://127.0.0.1:1080 或 socket5://127.0.0.1:1080 git config --global http.proxy 'http://127.0.0. 阅读全文

posted @ 2017-05-11 12:47 阿兴的平凡世界 阅读(9651) 评论(0) 推荐(0)

Qt设置阻塞式网络请求,和超时处理
摘要:QNetworkProxy proxy; proxy.setType(QNetworkProxy::Socks5Proxy); proxy.setHostName(LOCAPROXYIP); proxy.setPort(LOCAPROXYPORT); proxy.setUser(PROXYUSERN 阅读全文

posted @ 2017-05-09 18:38 阿兴的平凡世界 阅读(6020) 评论(0) 推荐(0)

c++根据进程名称kill进程(不保险,最好根据进程id)
摘要:BOOL ClientApp::KillProcessByName(const TCHAR *lpszProcessName) { unsigned int pid = -1; BOOL retval = TRUE; if (lpszProcessName == NULL) return -1; D 阅读全文

posted @ 2017-05-04 21:35 阿兴的平凡世界 阅读(2889) 评论(0) 推荐(0)

c++检测本机网络
摘要:bool checkProxyNetwork(){ WSADATA wsaData; if (WSAStartup(MAKEWORD(2, 2), &wsaData) != 0) { qDebug() << "找不到可使用的WinSock dll!" << endl; return false; } 阅读全文

posted @ 2017-05-04 21:34 阿兴的平凡世界 阅读(805) 评论(0) 推荐(0)

导航