随笔分类 - 学习
摘要:1、开源实体映射框架EmitMapper(http://www.cnblogs.com/wuhong/archive/2011/09/21/2184313.html) 2、ffmpeg.exe是一个源于Linux的工具软件,为FLV视频转换器,可以轻易地实现FLV向其它格式avi、asf、 mpeg
阅读全文
摘要:基础信息 1、MenuItem 样式 <Window.Resources> <Style TargetType="{x:Type MenuItem}"> <!--<Setter Property="Background" Value="#999999" />--> <!--<Setter Prope
阅读全文
摘要:1、如何设置winform窗体透明,但是显示的内容不透明? 方法:BackColor设置:Red(任意)在窗体属性里设置一个“TransparenceKey”的属性为Red 2、如何让C#编译不安全代码(含unsafe的代码) 方法:在“项目” 属性设置界面,找到“生成”选项卡下的“允许不安全代码”
阅读全文
摘要:1、generated debug assertion -- File: docsingl.cpp Line: 215 MFC程序vs2008编译通过,运行时出错,无法打开,提示f:\dd\xxxx的docsingl.cpp中的210行,找到以下代码: void CSingleDocTemplate
阅读全文
摘要:public class Path_File { public string AppPath { get { return AppDomain.CurrentDomain.BaseDirectory; } } public Path_File() { } /// <summary> /// 查找指定
阅读全文
摘要:本文是对Win7(64)+VS2010+WDK7.1.0(WinDDK\7600.16385.1)开发驱动的小结。一、系统工具1、Win7(amd64位)系统注:已装系统后,管理员身份运行cmd命令,查看bcdedit/settestsigningtrue、bcdedit/debugon等命令是否运...
阅读全文
摘要:驱动开发参考文章:Windbg+Vmware驱动调试 http://blog.csdn.net/xuepiaosong/article/details/8236702驱动调试攻略(WinDbg) http://blog.163.com/zhg_tao/blog/static/84116744200...
阅读全文
摘要://获取启动了应用程序的可执行文件的路径,不包括可执行文件的名称。 string str5=Application.StartupPath; //可获得当前执行的exe的文件名。 string str1 =Process.GetCurrentProcess()....
阅读全文
摘要:1、获取Mac地址//WiFi通知回调 private WlanApi.WLAN_NOTIFICATION_CALLBACK _notificationCallback;this._notificationCallback = new WlanApi.WLAN_NOTIFICATION...
阅读全文
摘要:1、将对象序列化为二进制值,供WebBrowser传值: private static byte[] PostDataToBytes(Data postData) { JavaScriptSerializer jsonSerializer = new...
阅读全文
摘要:一、直接写入文件 /// /// 将message的内容写入日志文件 /// /// public static void WriteLog(string msg) { string path = Ap...
阅读全文
摘要:一、通过系统事件1、实现如下:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Windows.Forms;using System.Threading;usi...
阅读全文
摘要:using System;using System.Collections.Generic;using System.Text;using System.Windows.Forms;namespace MyWifi{ public class ListBoxLogs { p...
阅读全文
摘要:写的一个简单启动关闭WiFi的类:具体如下using System;using System.Collections.Generic;using System.Text;using System.Diagnostics;namespace MyWifi{ public class WiFi ...
阅读全文
摘要:构思:先计算各自的数量,那些数量最多,输出详细信息具体算法如下: public class Count { #region 计算各实体数量 public static Hashtable EntityCount(DataTable dt, string clm...
阅读全文
摘要:线程池构思: 初始化线程池时,创建指定数量的线程,并将其全部放入空闲线程堆中。当添加任务时,判断是否有空闲线程,若有,则弹出一个空线程执行该任务,并将该线程添加到正在执行的线程列表中;若没有空闲线程则将任务添加到任务队列中。待任务执行完后,标记该任务状态为已完成,再查看任务队列中是否仍有任务,若有...
阅读全文
摘要:1、向窗体上添加如下控件:MenuStrip menuStrip1, NotifyIcon ni_frmMain,Timer timer1, ContentMenuStrip cms_notify。其中notify中包含显示、退出等。2、实现的代码: #region 托盘相关代码 ...
阅读全文
摘要:实现托盘(任务栏图标与托盘图标互斥),并且在点击任务栏图标时实现的最小化与点击最小化按钮分离。具体如下:1、向窗体上添加如下控件:MenuStrip menuStrip1, NotifyIcon ni_frmMain,Timer timer1, ContentMenuStrip cms_noti...
阅读全文
摘要:控制WinForm界面在屏幕的四个角落显示,具体代码中有说明:using System;using System.Collections.Generic;using System.Drawing;using System.Linq;using System.Text;using System.Thr...
阅读全文

浙公网安备 33010602011771号