2006年10月18日

摘要: 今天看Thinking in C++ 2nd v2第一章的关于set_unexpected, 测试书里的代码, 发现和书上的结果不同, 代码如下: //: C01:BadException.cpp {-bor} #include // For std::bad_exception #include #include using namespace std; // Except... 阅读全文

posted @ 2006-10-18 20:29 Adrian H. 阅读(1242) 评论(0) 推荐(0) 编辑

2006年10月15日

摘要: 最近重新学习C++, 这东西自从上过这门课后很少用过, 除了数据结构, 算法偶尔用来写写代码段, 都是用C#写程序, 用习惯了.NET的一套完善的框架, 突然要学习使用C++颇有些不习惯, 首先是语法比C#复杂的多, 一本Thinking in C++全部都是在讲语法.. 看了几天也看了一大半, 感觉很爽, 学到了很多原来不知道和不清楚的东东.不过标准C++的类库相比.NET BCL的完善程度真... 阅读全文

posted @ 2006-10-15 20:56 Adrian H. 阅读(458) 评论(1) 推荐(0) 编辑

2006年10月6日

摘要: 先看如下代码: static int Test() { int val = 1; try { return val; } finally { val = 2; ... 阅读全文

posted @ 2006-10-06 16:01 Adrian H. 阅读(382) 评论(0) 推荐(0) 编辑

摘要: 原文地址:http://blogs.msdn.com/ashishme/archive/2006/10/05/Exceptional-Handling-in-Windows-Communication-Framework-and-Best-Practices.aspxException handling is critical to all applications for troubleshoo... 阅读全文

posted @ 2006-10-06 15:30 Adrian H. 阅读(1836) 评论(0) 推荐(0) 编辑

2006年10月2日

摘要: 就两个class, 好用又方便~ MyMessageInspector using System; using System.Xml; using System.IO; using System.ServiceModel; using System.ServiceModel.Channels; using System.ServiceModel.Dispatcher; namespac... 阅读全文

posted @ 2006-10-02 11:05 Adrian H. 阅读(421) 评论(0) 推荐(0) 编辑