个人未完成的网站

07 2012 档案

vm8.0安装mac提示中断导致虚拟cpu进入终止状态……vm重启的解决办法
摘要:安装虚拟机过程中,出现下面状况的:The cpu has been disabled by the guest operating system. You will need to power off or reset the virtual machine at this point”编辑vmx的文件,就是开始的时候改成darwin10的那个文件,添加下面这个语句。cpuid.1.eax = "0000:0000:0000:0001:0000:0110:1010:0101"新的i3,i5,i7cpu,虚拟机会对对核心进行检验,上面的语句的特点,就是绕过这些检验。语句的原理 阅读全文

posted @ 2012-07-05 15:27 我是小虫 阅读(1517) 评论(3) 推荐(0)

Thread 初学(二)——线程同步
摘要:在讨论thread的常用方法之前,有必要先说一说IsBackground属性。废话少说上代码。 1 private void Form1_Load(object sender, EventArgs e) 2 { 3 Thread t = new Thread(run); 4 t.Start(); 5 t.IsBackground=true; // 设置是否为后台线程 6 } 7 public void run() 8 { 9 whi... 阅读全文

posted @ 2012-07-04 11:49 我是小虫 阅读(320) 评论(0) 推荐(0)

WPF和WindowsForm下的按下Enter跳转下一个控件通用方法
摘要:WP下按下回车(enter)跳转下一个控件 上代码:protected override void OnKeyDown(KeyEventArgs e) { if (e.Key == Key.Enter) { // MoveFocus takes a TraveralReqest as its argument. TraversalRequest request = new TraversalRequest(FocusNavigationDirection.Next); ... 阅读全文

posted @ 2012-07-02 18:41 我是小虫 阅读(2191) 评论(0) 推荐(0)

导航