发布时间:2015-11-06 14:24:41
主要函数: MiniDumpWriteDump代码示例:#include #include #include #pragma comment(lib, "Dbghelp.lib")LONG WINAPI MyUnhandledFilter(struct _EXCEPTION_POINTERS*lpExceptionInfo){LONG ret = EXCEPTION_EXECUTE_HANDLER;TCHAR szFileNa.........【阅读全文】
发布时间:2015-11-06 14:01:53
1. w()函数:函数功能:分割路径为 FileTitle, extension四部分。例子:Cstring strFullPath =_T(“c:\user\you\test.doc”);TCHAR dir[_MAX_DIR];TCHAR ext[_MAX_EXT]; (, drive, _MAX_DRIVE, , _MAX_DIR, fname, _MAX_FNAME, ext, _MAX_EXT); 执行结果:.........【阅读全文】
发布时间:2015-11-05 16:13:32
1.msdn 在debug模式下的内存结构(曾今在gaia引擎里看过类似的自己模仿实现的内存管理结构)typedef struct _CrtMemBlockHeader{// Pointer to the block allocated just before this one: struct _CrtMemBlockHeader *pBlockHeaderNext;// Pointer to the block allocated just aft.........【阅读全文】
发布时间:2015-11-05 11:24:19
这篇博文只是为了给自己留个笔记而已.1.boost::tokenizer 的用法.当一个字符串使用某个分隔符的时候, 想快速的拿到分割后的字串, 可以使用.#include <boost/tokenizer.hpp> int main(){ std::string teststr = "14,24,rt| &44,56"; boost::char_separator<char> separator(","); boost::t......【阅读全文】