- 博客(5)
- 资源 (1)
- 收藏
- 关注
转载 c++遍历目录和子目录文件
void GetAllFiles(char* lpPath, std::vector<wstring> &fileList){ char szFind[MAX_PATH]; string strRootPath = lpPath; //根路径 WIN32_FIND_DATA FindFileData; memset(szFind, 0, MAX_PATH); strcpy(s...
2018-04-19 17:29:07
536
原创 vc 查找进程,并杀掉
PROCESSENTRY32 pe32;pe32.dwSize=sizeof(pe32);HANDLE hprocesssnap =::CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS,0);if (hprocesssnap==INVALID_HANDLE_VALUE){ return; } BOOL bmore =::Proces
2015-03-10 17:19:23
308
原创 总结cstring转换
1 串转换 CString && TCHAR*////CString 转换 TCHAR* int iLen = strRet.GetLength(); TCHAR* szRs = new TCHAR[iLen]; lstrcpy(szRs, strRet.GetBuffer(iLen)); 2 TCHAR[]转换CStringTCHAR szTemp[
2015-03-04 16:27:01
311
原创 http post 方法
//创建一个会话对象 try { CInternetSession session(_T("session")); INTERNET_PORT nPort = 8080; //创建一个连接对象 CHttpConnection* pHttpConnect = session.GetHttpConnection(_T("192.168.100.1
2014-04-22 17:52:27
498
原创 遍历
bool bWorking = FindFile.FindFile(strServerPath); while(bWorking) { bWorking=FindFile.FindNextFile(); if ( FindFile.IsDots() ) continue; if(FindFile.IsDirectory())
2014-02-18 15:48:41
363
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人