![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++
文章平均质量分 52
fdsdfdsf
这个作者很懒,什么都没留下…
展开
-
stringex - STL string 扩展库
std::string format(const char *fmt, ...) { va_list arg; va_start(arg, fmt); int len = _vscprintf_p(fmt, arg) + 1; std::auto_ptr<char> buf(new char[len]); _vsprintf_p(buf.get(), len, fmt, arg); va_end(arg); return buf.get(); } std::strin原创 2013-08-11 22:55:37 · 1349 阅读 · 0 评论 -
INI文件解析类
INI文件解析类,支持文件INI、内存INI,支持ANSI、UCS-2 Little Endian编码。 1.0.0.4更新: (1)修改错误。 (2)调整代码。 欢迎留言讨论。 下载地址:http://download.csdn.net/detail/fdsdfdsf/7103173原创 2013-04-03 11:42:59 · 958 阅读 · 0 评论 -
函数static变量的线程竞争问题
比如,单例模式一个简单实现: class CSingleton { public: static CSingleton* GetInstance() { static CSingleton *pInstance = new CSingleton(); return pInstance; } void PrintText() { std::cout << "Hello Wo原创 2014-01-18 11:37:01 · 702 阅读 · 0 评论 -
高精度定时器(Windows)
一个高精度定时器的C++实现。 下载地址:http://download.csdn.net/detail/fdsdfdsf/6837703原创 2014-01-11 17:32:27 · 2959 阅读 · 0 评论 -
快速MD5计算
由Windows API实现的一个MD5计算函数,在Windows平台上比其他开源的MD5库快20%以上。 下载地址:http://download.csdn.net/detail/fdsdfdsf/5771707原创 2013-07-17 18:11:32 · 1201 阅读 · 0 评论 -
tr1::bind与tr1::function的用法与具体应用
关于tr1::bind及tr1::function的用法,请参考:http://blog.sina.com.cn/s/blog_5eb8ebcb0100tcty.html 以下是实际工程中的代码,用于非窗口类(比如DirectUI库的页面类,这些类并不包含可以用来接收消息m_hWnd成员)创建一个隐藏窗口,并绑定成员方法到这个隐藏窗口的消息处理函数上。 class CMessageWindow原创 2013-12-20 20:33:28 · 1347 阅读 · 0 评论