#include"stdafx.h"#include #include #include using
namespace std;BOOL KillProcess(DWORD ProcessId){ HANDLE
hProcess=OpenProcess(PROCESS_TERMINATE,FALS...
分类:
其他好文 时间:
2014-07-22 23:15:36
阅读次数:
312
句柄相当于一个指向指针的指针,指向指针的指针同样是指针,所以暂且认为它是一个指针,那么CreateFile相当于new
分配一个资源,让这个指针指到这块资源的首地址,那么当CloseHandle(handle)后等于是delete操作。此时handle的值还在,但是资源已被释放掉,那这个时候如果去访...
分类:
其他好文 时间:
2014-05-09 11:47:10
阅读次数:
354
15句柄图形(Handle Graphics)15.1图形窗的产生和控制(Figure window
creation and control)clf 清除当前图close 关闭图形figure 打开或创建图形窗口gcf 获得当前图的柄openfig
打开图形refresh 刷新图形shg 显示图形...
分类:
其他好文 时间:
2014-05-06 09:39:42
阅读次数:
330
using wait and notify directly is like
programming in "concurrency assembly language," as compared to the higher-level
language provided by java.util....
分类:
编程语言 时间:
2014-05-04 11:04:34
阅读次数:
401
javafx.concurrency并发包是为方便javafx Application Thread也就是javafx的UI线程与后台线程安全交互的工具包。
接口:Worker.
Worker接口封装了Worker.State枚举作为Worker的状态:READY,SCHEDULED,RUNNING,SUCCEDED,FAILED,CANCELLED.
Worker拥有下面这些只读prope...
分类:
编程语言 时间:
2014-05-01 21:51:52
阅读次数:
691
博客原文:http://hankjin.blog.163.com/blog/static/33731937201031511305338/先说C++,标准C++不支持finally,
如果要实现finally的效果,可以用析构函数来实现: class File_handle { FILE* p;p....
分类:
编程语言 时间:
2014-05-01 16:17:26
阅读次数:
371
1、在剪切板上放置数据if(OpenClipboard()) //打开剪切板{
EmptyClipboard(); //清空剪切板 CString str; //从控件中取出字符 HANDLE hclip;
//GlobalAlloc分配内存的句柄 char *buf; //返回的内存地址 GetD...
分类:
其他好文 时间:
2014-04-29 17:21:46
阅读次数:
316
You need to handle
theSystem.Windows.Forms.Application.ThreadExceptionevent for Windows Forms. This
article really helped me:http://bytes.com/forum/th...
分类:
移动开发 时间:
2014-04-27 21:10:16
阅读次数:
907