sailing

Everything...

2007年3月20日

用WMI来配置iis

摘要: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/iissdk/html/8b7799c1-cebc-4b11-b3d5-34ab7b728077.asp 阅读全文

posted @ 2007-03-20 20:09 乌生鱼汤 阅读(372) 评论(0) 推荐(0) 编辑

all about c++ is efficiency

摘要: At the age of .net, all the benefits c++ could have is deduced to the efficiency. It gives you way too much control over the working of the native layer infrastructure. While the cpu is growing faster... 阅读全文

posted @ 2007-03-20 00:52 乌生鱼汤 阅读(210) 评论(0) 推荐(0) 编辑

Enter C++让类成员字段在初始化列表中出现的顺序和他们被申明的顺序保持一致

摘要: 让类成员字段在初始化列表中出现的顺序和他们被申明的顺序保持一致,因为程序执行的时候是按照成员字段被定义的顺序来通过初始化列表进行初始化的。考虑到析构函数通常要以初始化相反的顺序对乘员字段进行销毁,所以严格按照定义的顺序进行初始化可以保证析构的时候只要按照定义相反的顺序进行析构成员字段,否则你的析构函数需要知道具体的成员是按照什么顺序进行初始化的。所以保持初始化列表的顺序可以使得程序更容易理解。另外... 阅读全文

posted @ 2007-03-20 00:40 乌生鱼汤 阅读(383) 评论(0) 推荐(0) 编辑

field interest

摘要: x/o mappingxml data binding linqhttp://blogs.msdn.com/xmlteam/archive/2006/11/27/typed-xml-programmer-welcome-to-linq.aspx 阅读全文

posted @ 2007-03-20 00:05 乌生鱼汤 阅读(370) 评论(0) 推荐(0) 编辑

2007年3月19日

Setup https security session on IIS sites

摘要: http://www.microsoft.com/technet/prodtechnol/windows2000serv/technologies/iis/maintain/featusability/c06iis.mspxhttp://msdn2.microsoft.com/en-us/library/aa302411.aspx 阅读全文

posted @ 2007-03-19 18:22 乌生鱼汤 阅读(191) 评论(0) 推荐(0) 编辑

2007年3月18日

C# syntax: call another constructor from a constructor

摘要: public Person(string firstName, string lastName) :this(firstName,lastName,0) { } public Person(string firstName, string lastName, int age) { ... 阅读全文

posted @ 2007-03-18 23:35 乌生鱼汤 阅读(174) 评论(0) 推荐(0) 编辑

2007年3月17日

安装处理new operator无法获取足够内存时候的处理函数

摘要: 在通常的情况下,调用new操作的时候,一般都不会去关心是否有足够的内存使得这个操作可以成功。但是做为一个完美的程序,有必要去处理一下内存不够的情况。在默认情况下,内存分配失败会导致返回null或者抛出一个std::bad_alloc异常,所以需要在每次new的时候检查返回值是否为NULL或者在new上包裹一个try catch块。不过,除了每次不厌其烦得关心new是否成功,我们可以利用C++提供的... 阅读全文

posted @ 2007-03-17 18:37 乌生鱼汤 阅读(333) 评论(0) 推荐(0) 编辑

2007年3月16日

shining cento in book reading: handle out of memory problem for new operator -by register a global SetNewHandler

摘要: Template/inheritance based NewHandler support, a good solution to add memory allocation failure support at class levelthe template is used to provide unique currentHandler pointer for each class, the ... 阅读全文

posted @ 2007-03-16 01:50 乌生鱼汤 阅读(368) 评论(0) 推荐(0) 编辑

2007年3月12日

ADO.net四大基本操作

摘要: ExecuteScaler : 只读,读取返回结果集合里面第一行第一列ExecuteNonQuery:只写,适合于只需要修改的情况ExecuteReader:只读,可以读取多行DataAdapter / DataSet:读取之后,可以进行离线操作,然后再把改动update回数据苦,功能相当于一个数据库:有relation,constraint,view,sort,search支持,而且可以直接和.... 阅读全文

posted @ 2007-03-12 02:41 乌生鱼汤 阅读(310) 评论(0) 推荐(0) 编辑

简单ADO.NET

摘要: static void Main(string[] args) { using (SqlConnection connection = new SqlConnection(CSharpTest.Properties.Settings.Default.Database1ConnectionString)) { ... 阅读全文

posted @ 2007-03-12 02:33 乌生鱼汤 阅读(168) 评论(0) 推荐(0) 编辑

导航