Roger Luo

超越梦想一起飞
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
上一页 1 2 3 4 5 6 7 8 9 10 ··· 14 下一页

2013年3月16日

摘要: bind function adapter (included <functional>) Introduce: bind(op, args, …) Binds args to op Simple Code auto pfn = std::bind(std::plus<int>(), std::placeholders::_1, 10);cout<<pfn(7); // 17 N... 阅读全文

posted @ 2013-03-16 17:30 Roger Luo 阅读(339) 评论(0) 推荐(0) 编辑

摘要: Go to Project Property Page/Cofniguration Properties General/Configuration Type, change as “Dynamic Library(.dll)” C/C++/Code Generation/Runtime Library, change as “/MDd” C/C++/Preprocessor/Preproc... 阅读全文

posted @ 2013-03-16 15:28 Roger Luo 阅读(313) 评论(0) 推荐(0) 编辑

摘要: C++ fstream fin;fin.open(filename, ios::in);if (!fin.good()){ cerr<<"Failed to open "<<filename<<endl; return -1;}fin.seekg(0, ios::end);size_t len = fin.tellg();char * raw = new char[len+1]... 阅读全文

posted @ 2013-03-16 12:55 Roger Luo 阅读(220) 评论(0) 推荐(0) 编辑

2013年3月15日

摘要: 静态变量需要在.cpp初始化,否则报错连接错误, 对于原始数据, int, double, … simple.h class Simple{public: Simple(void); ~Simple(void); static int GetInt(void);private: static int _i;};simple.cpp int Simple::Ge... 阅读全文

posted @ 2013-03-15 17:15 Roger Luo 阅读(5983) 评论(0) 推荐(0) 编辑

2013年3月5日

摘要: 内存映射文件 内存映射文件与虚拟内存有些类似,通过内存映射文件可以保留一个地址空间的区域,同时将物理存储器提交给此区域,只是内存文件映射的物理存储器来自一个已经存在于磁盘上的文件,而非系统的页文件,而且在对该文件进行操作之前必须首先对文件进行映射,就如同将整个文件从磁盘加载到内存。由此可以看出,使用内存映射文件处理存储于磁盘上的文件时,将不必再对文件执行I/O操作,这意味着在对文件进行处理时将不... 阅读全文

posted @ 2013-03-05 16:27 Roger Luo 阅读(2457) 评论(0) 推荐(0) 编辑

摘要: IO notification has 6 models 1. synchronous completion for “fast” I/O 2. polling 3. signaling the device kernel object directly 4. signaling an event object provided when I/O started 5. pos... 阅读全文

posted @ 2013-03-05 15:25 Roger Luo 阅读(307) 评论(0) 推荐(0) 编辑

摘要: MSSQL 2008 Using entity framework 1. Preparation Install SQL Server 2005 or Higher, link Install SQL Server 2000 Sample Databases, link Install .NET Framework 3.0 or Higher 2. Check whether Insta... 阅读全文

posted @ 2013-03-05 15:13 Roger Luo 阅读(933) 评论(0) 推荐(0) 编辑

摘要: Create file HANDLE hFile = ::CreateFile(lpcszFileName, GENERIC_READ | GENERIC_WRITE, FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, CREATE_ALWAY... 阅读全文

posted @ 2013-03-05 11:27 Roger Luo 阅读(276) 评论(0) 推荐(0) 编辑

摘要: Compression 阅读全文

posted @ 2013-03-05 10:43 Roger Luo 阅读(234) 评论(0) 推荐(0) 编辑

2013年3月3日

摘要: Configuration of MySQL on C# project. 1. Download the assembly from MySQL binary on installing MySQL connector .NET 2. Copy it to your project’s build out directory, such as ‘$ProjectDIR/Bin/Debug’ ... 阅读全文

posted @ 2013-03-03 18:52 Roger Luo 阅读(377) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 8 9 10 ··· 14 下一页