随笔分类 -  c/c++常用代码

c/c++常用代码
摘要:#include #include #include #include #pragma comment(lib, "ws2_32.lib")#define close closesocket#undef IP_ADD_MEMBERSHIP#define IP_ADD_MEMBERSHIP 12int... 阅读全文
posted @ 2015-01-09 22:46 崇山峻岭 阅读(551) 评论(0) 推荐(0)
摘要:#pragma once#include #include #include #include template class CMySM{public: CMySM() { m_pMem = NULL; m_hMem = NULL; } ~CMyS... 阅读全文
posted @ 2014-11-01 23:38 崇山峻岭 阅读(276) 评论(0) 推荐(0)
摘要:[转]doc,ppt,xls文件格式转PDF格式http://blog.csdn.net/lee353086/article/details/7920355确实好用。需要注意的是#import文件路径要和自己电脑上的文件路径对应/*功能: Office文件格式(docx、xlsx、pptx)转PDF... 阅读全文
posted @ 2014-10-22 15:17 崇山峻岭 阅读(1952) 评论(0) 推荐(0)
摘要:#pragma once#include #include typedef std::basic_string tstring;class CIniCfg{public: CIniCfg() { TCHAR szTemp[MAX_PATH]; GetMo... 阅读全文
posted @ 2014-10-20 22:32 崇山峻岭 阅读(253) 评论(0) 推荐(0)
摘要:#pragma once#include #include #include #ifdef _DEBUG#pragma comment(lib, "libcurld_imp.lib")#else#pragma comment(lib, "libcurl_imp.lib")#endifclass CU... 阅读全文
posted @ 2014-09-28 13:28 崇山峻岭 阅读(740) 评论(0) 推荐(0)
摘要:typedef std::basic_string tstring;inline static void trim(tstring& s){ s.erase(0, s.find_first_not_of(_T("\r\t\n "))); s.erase(s.find_last_not_of(_T("... 阅读全文
posted @ 2014-09-28 13:06 崇山峻岭 阅读(263) 评论(0) 推荐(0)
摘要:#pragma once#include #include #include #include static void clean_dir(const char* szDir){ if (szDir == NULL || strlen(szDir) == 0) return; std::strin... 阅读全文
posted @ 2014-08-22 17:32 崇山峻岭 阅读(314) 评论(0) 推荐(0)