<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">博客园_新手学习C#、Oracle、软件评测及我的日常生活</title><subtitle type="text">介绍我学习C#、Oracle的历程以及我推荐给大家的软件</subtitle><id>http://feed.cnblogs.com/blog/u/10578/rss</id><updated>2005-09-23T04:21:50Z</updated><author><name>lh8287</name><uri>http://www.cnblogs.com/lh8287/</uri></author><generator>CNBlogs BlogServer</generator><link rel="alternate" type="text/html" href="http://www.cnblogs.com/lh8287/"/><link rel="self" type="application/atom+xml" href="http://feed.cnblogs.com/blog/u/10578/rss"/><entry><id>http://www.cnblogs.com/lh8287/archive/2005/09/23/242605.html</id><title type="text">委托和事件浅解</title><summary type="text">委托和事件浅解&#xD;一、委托&#xD;    委托实际上就是C++里面的函数指针，你可以让这个指针指向委托定义时所声名的那种类型的函数。举个例子：&#xD;&#xD;public delegate void 连接数据库委托();&#xD;表示：声名一个委托类型，这个委托叫“连接数据库委托”，它所能指向的函数都是返回值为void型，没有参数的函数。比如：&#xD;private void 连接Oracle数据库();&#xD;private void 连接SqlServer数据库();&#xD;&#xD;我们现在的程序里面要根据用户设定的数据库类型，自动连接数据库。&#xD;程序里面可以这么写：&#xD;连接数据库委托 委托实例 = null;&#xD;&#xD;switch(目标数据库类型)&#xD;{&#xD;    case 数据库类型.Oracle数据库:&#xD;        委托实例 += new 连接数据库委托(连接Oracle数据库);&#xD;        break;&#xD;    case 数据库类型.SqlServer数据库:&#xD;        委</summary><published>2005-09-23T04:22:00Z</published><updated>2005-09-23T04:22:00Z</updated><author><name>lh8287</name><uri>http://www.cnblogs.com/lh8287/</uri></author><link rel="alternate" href="http://www.cnblogs.com/lh8287/archive/2005/09/23/242605.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/lh8287/archive/2005/09/23/242605.html"/></entry><entry><id>http://www.cnblogs.com/lh8287/archive/2005/09/08/232500.html</id><title type="text">C#的WinForm程序应用了XP主题样式之后，ShowDialog方法出现问题的解决</title><summary type="text">大李的破程序，他在Application.Run(new Form1());之前应用了Application.EnableVisualStyles();&#xD;&#xD;程序中有个按钮，Click事件的代码为：&#xD;Form2 frm2=new Form2();&#xD;frm2.ShowDialog();&#xD;程序运行时，点击此按钮，出现了一个窗体，然后关闭此窗体，再点击这个按钮，又会出现一个窗体，当关闭这个窗体时系统抛出了一个异常：System.Runtime.InteropServices.SEHException，外部组件引发异常。&#xD;&#xD;在Google查了一下，发现了解决办法：&#xD;static void Main() &#xD;{&#xD;    Application.EnableVisualStyles();&#xD;     new Thread(new ThreadStart(AppRun)).Start();&#xD;}&#xD;&#xD;private static void AppRun()&#xD;{&#xD;   Applicat</summary><published>2005-09-08T07:12:00Z</published><updated>2005-09-08T07:12:00Z</updated><author><name>lh8287</name><uri>http://www.cnblogs.com/lh8287/</uri></author><link rel="alternate" href="http://www.cnblogs.com/lh8287/archive/2005/09/08/232500.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/lh8287/archive/2005/09/08/232500.html"/></entry><entry><id>http://www.cnblogs.com/lh8287/archive/2005/09/08/232496.html</id><title type="text">c#中的注视一览</title><summary type="text">C#中的注释要好好加以利用，这样就能做出带有注释的Dll或者控件，方便使用。&#xD;&#xD;设计类的时候：</summary><published>2005-09-08T07:10:00Z</published><updated>2005-09-08T07:10:00Z</updated><author><name>lh8287</name><uri>http://www.cnblogs.com/lh8287/</uri></author><link rel="alternate" href="http://www.cnblogs.com/lh8287/archive/2005/09/08/232496.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/lh8287/archive/2005/09/08/232496.html"/></entry></feed>
