2007年4月24日
摘要: 在C#中获得文件信息很容易,只需要用FileInfo类或者FileVersionInfo类就可以获得,但是如果想要获得文件的扩展信息,则无法从这两类来获得。不过在C#中,这也不是件难事,只要引入“Microsoft Shell Controls and Automation”这个COM就可以获得。 接下来就分别来介绍。 首先介绍FileInfo类,这个类非常简单,首先需要根据文件名来创建Fil... 阅读全文
posted @ 2007-04-24 16:07 DongD 阅读(396) 评论(0) 推荐(0)
摘要: 在.net中提供了一些类来显示和控制Windows系统上的服务,并可以实现对远程计算机服务服务的访问,如System.ServiceProcess命名空间下面的ServiceController 类,System.Management下面的一些WMI操作的类。虽然用ServiceController可以很方便的实现对服务的控制,而且很直观、简洁和容易理解。但是我认为他的功能同通过WMI来操作服务相... 阅读全文
posted @ 2007-04-24 15:57 DongD 阅读(1899) 评论(3) 推荐(0)
摘要: 众所周知,如果不用其它方法,直接从WEB SERVICE上传回一个10W条记录的DATASET,可想而知的后果是什么,CPU要占用 100%,且要等上几分钟,这是任何一个项目都无法忍受的.在我上网找资料的过程中,试验了几种不同的方法,如通过压缩SOAP改善XML Web service性能,这篇文章所介绍的方法用了SOAP扩展,是通过在WEB SERVICE端用已经过时了的NZIPLIB库来压缩S... 阅读全文
posted @ 2007-04-24 15:54 DongD 阅读(1276) 评论(1) 推荐(0)
摘要: How to send large files across Web Services in small chunks using MTOM (WSE 3). 阅读全文
posted @ 2007-04-24 15:43 DongD 阅读(2107) 评论(1) 推荐(0)
摘要: 本文与《 C#实现带图标菜单 》为同一系列,请参考阅读。 上篇关于带图标显示菜单的实现办法中大家可以看到我把文件以及文件夹的图标显示在菜单项上,就像在资源管理器中一样。 那个图标是怎么获取的呢,我在MSDN中搜索了一下,找到了SHGetFileInfo函数,这是Shell32.dll中的一个函数,具体功能大家还是看MSDN中Platform SDK部分对SHGetFileInfo函数的说明... 阅读全文
posted @ 2007-04-24 15:19 DongD 阅读(3550) 评论(1) 推荐(0)
摘要: Introduction This article is based upon code from the MSDN Cold Rooster Consulting case study. Included in part of the CRC Rich Client is support for file icons, something I wanted to do myself. This... 阅读全文
posted @ 2007-04-24 15:09 DongD 阅读(1034) 评论(1) 推荐(0)
摘要: Introduction Every now and then we are faced with a question concerning our web applications which is, "What kind of permissions the a user has on a certain file or folder?". The answer to this questi... 阅读全文
posted @ 2007-04-24 14:59 DongD 阅读(846) 评论(0) 推荐(0)
摘要: Introduction As the title of the article describes this article is going to describe a very simple but very helpful topic. Every now and then we are faced with a situation where we have to fix a file ... 阅读全文
posted @ 2007-04-24 14:56 DongD 阅读(400) 评论(0) 推荐(0)