sailing

Everything...

03 2007 档案

google搜索自动提示下拉菜单
摘要:google的自动提示下拉菜单,非常让人感动的小改动: 阅读全文

posted @ 2007-03-28 19:32 乌生鱼汤 阅读(1243) 评论(1) 推荐(0)

用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 乌生鱼汤 阅读(379) 评论(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 乌生鱼汤 阅读(217) 评论(0) 推荐(0)

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

posted @ 2007-03-20 00:40 乌生鱼汤 阅读(393) 评论(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 乌生鱼汤 阅读(388) 评论(0) 推荐(0)

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 乌生鱼汤 阅读(198) 评论(0) 推荐(0)

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 乌生鱼汤 阅读(179) 评论(0) 推荐(0)

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

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

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 乌生鱼汤 阅读(379) 评论(0) 推荐(0)

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

posted @ 2007-03-12 02:41 乌生鱼汤 阅读(318) 评论(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 乌生鱼汤 阅读(176) 评论(0) 推荐(0)

提供连接字符串的网站
摘要:一个提供连接字符串的网站,很全:http://connectionstrings.com/ 阅读全文

posted @ 2007-03-12 01:54 乌生鱼汤 阅读(125) 评论(0) 推荐(0)

输出trace信息
摘要:The program below demonstrates output the trace to three different place, it's a very cool feature in .net, very convenient and exactly what we desire of most of the time.1 eventlog2 console3 textfil... 阅读全文

posted @ 2007-03-07 14:39 乌生鱼汤 阅读(242) 评论(0) 推荐(0)

.net data providers
摘要:System.Data.DataTable dt = System.Data.Common.DbProviderFactories.GetFactoryClasses(); for (int i = 0; i < dt.Rows.Count; i++) { Console.WriteLine("... 阅读全文

posted @ 2007-03-06 23:31 乌生鱼汤 阅读(464) 评论(0) 推荐(0)

从一个constructor里调用另外一个constructor
摘要:class Person { public Person(string firstName, string lastName) :this(firstName,lastName,0) { } public Person(string firstName, string lastName, i... 阅读全文

posted @ 2007-03-06 10:46 乌生鱼汤 阅读(215) 评论(0) 推荐(0)

导航