摘要: 如果我们的程序需要访问网络,希望在安装的时候自动将我们的程序加入到 windows firewall的exception list中,以保证对用户的透明,这篇文章介绍了如果做。Microsoft发布了一个helper dll来操作防火墙,给我们带来了很大方便:Windows Firewall for Game Developers http://msdn.microsoft.com/en-us/library/bb173455(VS.85).aspx在C#中可以使用platform invoke调用这个dll中的函数.Platform Invoke Tutorialhttp://msdn.mi 阅读全文
posted @ 2009-01-31 06:49 蔡秋心 阅读(275) 评论(0) 推荐(0) 编辑
摘要: windows medie player (以下简称WMP),默认不在vs2005的toolbox中,因此,需要手动添加,下面是在vs2005中使用WMP控件的步骤:The following is the walkthrough to use a Windows Media Player COM component in a WinForms application. 1. If the Windows Media Player COM component is not present in the Toolbox, right-clikc on the Toolbox and choose 阅读全文
posted @ 2009-01-31 06:44 蔡秋心 阅读(413) 评论(0) 推荐(0) 编辑
摘要: csdn上有个网友问这个问题,google了一下,发现C#无法实现这个功能。不过还是挺有意思的。说起来简单,你的动态库必须实现一个叫EntryPoint的接口,rundll32.dll会loadlibrary并调用这个函数:void CALLBACK EntryPoint(HWND hwnd, HINSTANCE hinst, LPSTR lpszCmdLine, int nCmdShow); Rundll会执行下列步骤:它分析命令行。 它通过 LoadLibrary() 加载指定的 DLL。 它通过 GetProcAddress() 获取 <entrypoint> 函数的地址。 阅读全文
posted @ 2009-01-31 06:18 蔡秋心 阅读(297) 评论(0) 推荐(0) 编辑
摘要: 不同于winform application,asp.net被IIS的进程运行以及管理,肯定无法像winform一样随心所欲的使用线程了。下面的文章简单的介绍了如何在asp.net中使用线程:Multithreading in ASP.NET http://www.beansoftware.com/ASP.NET-Tutorials/Multithreading-Thread-Pool.aspx Microsoft还有一个线上教程,希望对大家有用:ASP.NET多线程编程(一) http://msevents.microsoft.com/CUI/EventDetail.aspx?EventID 阅读全文
posted @ 2009-01-31 06:12 蔡秋心 阅读(297) 评论(0) 推荐(0) 编辑