Roger Luo

超越梦想一起飞
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
上一页 1 ··· 7 8 9 10 11 12 13 14 下一页

2012年11月15日

摘要: Install BOOST 1. Build from source code Download the new release package from boost official website For windows, download zip or 7z format and unpack it using 7zip or winrar For linux/mac os, dow... 阅读全文

posted @ 2012-11-15 08:55 Roger Luo 阅读(378) 评论(0) 推荐(0) 编辑

2012年11月8日

摘要: convert char * to wchar_t *using mbstowcs function char psz[] = {"helloworld\0"}; wchar_t pwsz [10] = {0}; int len = strlen(psz); int ret = mbstowcs(pwsz, psz, min(len, 10)); cout<<ret<<endl; wcout<<pwsz<<endl;Note: if the dest has less space than src, that will cau 阅读全文

posted @ 2012-11-08 16:05 Roger Luo 阅读(180) 评论(0) 推荐(0) 编辑

摘要: Debug logSometimes we need to print some logs to show the application is running well during debug. But for release version, we choose to ignore these logs.So we can use macros to finish these function, in that way, no need to change the code.#ifdef _DEBUG #define DPRINT(...) printf(__VA_ARGS__) #el 阅读全文

posted @ 2012-11-08 12:56 Roger Luo 阅读(194) 评论(0) 推荐(0) 编辑

2012年11月7日

摘要: traverse elements in contianer associated container: set Compare between sets if you want to find the different elements in one set to another set, you could use the std::set_difference met... 阅读全文

posted @ 2012-11-07 15:56 Roger Luo 阅读(269) 评论(0) 推荐(0) 编辑

2012年10月29日

摘要: 命令行命令列表: http://ss64.com/nt/ 例子1: @echo offset kobradir="C:\Program Files\Reuters\Kobra\Program"set kobra="kobra.exe"set kobraconfig="C:\Program Files\Reuters\Common\Config\RFA.RFA-co... 阅读全文

posted @ 2012-10-29 21:00 Roger Luo 阅读(764) 评论(0) 推荐(0) 编辑

2012年10月28日

摘要: 1. download the boost library from the offical website.2. Unzip the file For windows, use 7zip for .7z file or use zip for .zip file. For ubuntu/linux/mac os x, use command: tar xjf boost_1_xx_x.tar.bz2 -f boost_1_xx_x or tar zxf boost_1_xx_x.tar.gz -f boost_1_xx_x3. Create the bjam/bj2, run the com 阅读全文

posted @ 2012-10-28 16:55 Roger Luo 阅读(514) 评论(0) 推荐(0) 编辑

2012年6月14日

摘要: typedef vector<string> StrVector; void ASCII2String(const char * sz, StrVector& v1) { int val = 0; string str; const char * p = sz; while (*p) { str = ""; val = (int)*p; val &= 0x000000ff; while (val) { switch (val%16) { case 0xF: str = "F"+str; break; case 0xE: ... 阅读全文

posted @ 2012-06-14 11:32 Roger Luo 阅读(657) 评论(0) 推荐(0) 编辑

2011年9月14日

摘要: sudo lsb_release -a # to check the information of ubuntu releasesudo apt-get install poppler-data # for document viewer(pdf reader included in ubuntu to support the chinese characters in pdf)sudo apt-get install -c ~/apt_proxy.conf install p7zip-full (extract 7z format file)cat /etc/issue#For Devsud 阅读全文

posted @ 2011-09-14 11:48 Roger Luo 阅读(144) 评论(0) 推荐(0) 编辑

2011年9月10日

摘要: as far i writting this article, stlport's last version is 5.2.1.you will find this stlport is perfectly integrated with visual studio 2008.but if you include stlport library in visual studio 2010, you get compile error.stlport\stl\_cstdlib.h contains a redefinition of abs() that VS2010 doesn' 阅读全文

posted @ 2011-09-10 22:00 Roger Luo 阅读(187) 评论(0) 推荐(0) 编辑

摘要: Setting vc++ directory is different with vs2008 on vs2010. In vs2008, we can change our extensional directory by setting theenvironmentdirectory by Tools->Options->Projects and Solutions->VC++ Directories.In vs2010, this above setting is deprecated. You should change the extensional directo 阅读全文

posted @ 2011-09-10 21:50 Roger Luo 阅读(243) 评论(0) 推荐(0) 编辑

上一页 1 ··· 7 8 9 10 11 12 13 14 下一页