2011年11月10日
摘要: 使用宏对函数进行扩充#define WriteLogDebugInfo(s...) WriteLogDebugInfos(__FILE__,__LINE__,##s);// 日志使用策略部分int WriteLogDebugInfos(const char *pFile,int nline,const char *pchMsg);我之前定义的函数是 WriteLogDebugInfo(),但是我需要增加一些参数,这个函数被多个地方调用,我不希望改变传入的参数(特别是这些参数是固定的,比如行号什么的)。那么我就使用这个宏定义进行扩充了。把原定义更改为WriteLogDebugInfos(),然后 阅读全文
posted @ 2011-11-10 19:32 蚂蚁跳楼 阅读(167) 评论(0) 推荐(0)
摘要: How to get started using Boost threads By AndyUk06 | 7 Nov 2011 | Unedited contribution C++ThreadingBoost A non-nonsense guide to setting up boost threads in Visual Studio environments Sponsored Links... 阅读全文
posted @ 2011-11-10 09:15 蚂蚁跳楼 阅读(362) 评论(0) 推荐(0)