c++ 中间件
HungryGoogle
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
sigslots的简单例子
插槽系统常用的有三种:boost的signals,sigslot,sigc++1、返回值必须为void2、Slot参数个数范围为0-8个3、实现slot的类必须继承自has_slots//////////////////////////////////////////////////////////////#include "stdafx.h"#incl原创 2012-12-29 21:40:49 · 1805 阅读 · 0 评论 -
基于日志的内存泄露检测方法(跨平台,支持C/C++)
转载:原地址 http://www.leewei.org/?p=2389前一篇文章《几种内存泄露检测工具的比较》比较了几款比较流行的内存泄露检测工具,并做出了总结。但是遗憾的是,没有一款是既跨平台又支持C/C++的。主要原因有两点:一是在两种平台下提供的注册钩子函数及功能不一致,二是输出方式比较难确定(GUI应用程序无法看到控制台的内容)。 接下来要实现一套自己的内存检测方式,需求如转载 2013-08-31 06:15:44 · 903 阅读 · 0 评论 -
cleartype设置
ClearType is a quality property for fonts. You should get the LOGFONT for your CFont and set the lfQuality property. Here's an example.CFont *pFont = CFont::FromHandle((HFONT)GetStockObject(DEFAULT_原创 2013-09-10 22:24:06 · 1355 阅读 · 0 评论 -
C++抛出异常exception
// testMyException.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include using namespace std;int _tmain(int argc, _TCHAR* argv[]){ try { //cout //throw(10);原创 2014-10-08 21:35:16 · 705 阅读 · 0 评论 -
字符串和数字转换
#include "stdafx.h"#include "sstream"using namespace std;#define Log(fmt,...) \ printf(("%s"),__FILE__,__FUNCTION__,__LINE__);\ printf(fmt, __VA_ARGS__);\ printf("\r\n");原创 2014-09-30 20:02:34 · 519 阅读 · 0 评论 -
CryptGenRandom windows下生成随机数的函数使用
// test_CryptGenRandom.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include "windows.h"#include "wincrypt.h"#include using namespace std;class CCryptRandom {public:原创 2014-10-02 11:36:09 · 6971 阅读 · 0 评论
分享