-
Including the application menu UIMENU, calculator division, the use of a single...
包括UIMENU菜单的应用,除法计算器,单选框的使用,添加环境效果,改变坐标轴范围等子程序-Including the application menu UIMENU, calculator division, the use of a single box, add the environmental effects of changes in the scope axis Subroutine
- 2022-02-09 17:15:58下载
- 积分:1
-
数据挖掘聚类方法
数据挖掘聚类方法,分为两个算法,测试集合有两个,分别为k-medoid算法和谱聚类算法,完整的java工程
- 2022-08-07 16:36:54下载
- 积分:1
-
文件修改监控
ReadDirectoryChangesW 有同步和异步2种方式,
根据前面打开的文件夹对象句柄决定。
1. 异步方式,如果 CreateFile 指定了打开类型 FILE_FLAG_OVERLAPPED 就是异步方式,ReadDirectoryChangesW 调用的时候就需要指定 OVERLAPPED 参数.
接下来对文件夹I/O变化的响应判断有多种方式。
A通过不断的调用HasOverlappedIoCompleted函数(非阻塞,参数就是前面的OVERLAPPED 对象指针)的返回值来判断是否发生了 关注文件句柄的I/O操作。如果发生变化,再执行你的 switch(Buffer[0].Action) 操作过程。
B GetOverlappedResult 读取 OVERLAPPED 对象的结果。(阻塞)
C 完成端口 GetQueuedCompletionStatus (阻塞)。
其中阻塞方式,必须采用多线程的方式,否则你的主线程被阻塞的话,对话框就动不了了。非阻塞方式也可用多线程,结合hEvent对象来使用。
2.同步方式,如果CreateFile不指定FILE_FLAG_OVERLAPPED ,就是同步方式。
同步方式操作比较简单。lz的程序看来就是使用的同步方式。
在同步下,ReadDirectoryChangesW 将被阻塞,直到一个文件夹句柄的I/O操作到来,然后才能判断。所以lz的程序会死掉。
同步方式必须采用多线程,再创建一个线程,线程函数采用如下方式:
UINT ThreadProc(PVOID)
{
CreateFile();
while(1) // 如果只想监视一次文件的I/O变化,可不用while循环。
{
- 2022-03-10 05:44:52下载
- 积分:1
-
一个外部中断0的简单程序,该程序实现外部中断0的模拟以及中断服务程序的响应。...
一个外部中断0的简单程序,该程序实现外部中断0的模拟以及中断服务程序的响应。-External Interrupt 0 is a simple procedure that implementation of the Analog External Interrupt 0 interrupt service routine, as well as response.
- 2023-01-30 13:35:03下载
- 积分:1
-
这是一个能够正常运行的vc编的计算器小程序,希望大家喜欢!我会继续努力的!...
这是一个能够正常运行的vc编的计算器小程序,希望大家喜欢!我会继续努力的!-This is a normal operation of the calculator vc series of small procedures, hope you like them! I will continue to work hard!
- 2022-03-06 13:51:58下载
- 积分:1
-
This course is designed for individuals interested in developing their skills in...
This course is designed for individuals interested in developing their skills in Microsoft Visual C++ 6.0 while developing desktop applications. Topics include using the Microsoft Solutions Framework (MSF) building applications with the Microsoft Foundation Classes (MFC) creating user interfaces implementing application behaviors and working with persistent data. Also included are adding database support to applications creating Component Object Model (COM) components and ActiveX controls using MFC and the Active Template Library (ATL) Internet programming error handling, debugging, and testing and application deployment.
- 2022-04-01 21:44:40下载
- 积分:1
-
图像的分解
该程序实现简单 操作容易 处理起来比较方便 实用性强 相信会有很大帮助对我们 呵呵。
- 2022-04-17 18:11:23下载
- 积分:1
-
When a remote intruder to log in a timely manner, we will issue a report to the...
当有入侵者远程登
录时会及时给我们发出报警。要想能够及时发
出报警信息.就要用到短信报警,方便快捷-When a remote intruder to log in a timely manner, we will issue a report to the police. To be able to give timely warning information. Alarm SMS will be used, convenient and quick
- 2023-02-23 09:50:03下载
- 积分:1
-
Delphi写的网络验证系统,方便你进行收费软件的编写!
Delphi写的网络验证系统,方便你进行收费软件的编写!-Delphi to write a network authentication system to facilitate your software for the preparation of charge!
- 2022-04-27 12:47:46下载
- 积分:1
-
java game uploading now
java game uploading now
- 2023-01-22 01:30:03下载
- 积分:1