-
2008年10月4日23:17:52
2008年10月4日23:17:52-October 4, 2008 23:17:52
- 2022-07-15 12:58:11下载
- 积分:1
-
这是一个将两个数组合并成一个数组,并进行从小到大排序,去除相同的数据的一个程序。...
这是一个将两个数组合并成一个数组,并进行从小到大排序,去除相同的数据的一个程序。-This is a merger of the two arrays into one array, and from small to large order of removal of the same data of a program.
- 2022-10-16 22:40:03下载
- 积分:1
-
operation of a serial example
一个串口操作的例子-operation of a serial example
- 2022-02-02 10:09:50下载
- 积分:1
-
VB编写的RS232串口通信测试程序,以txt格式接受,可定义发送字符
资源描述VB编写的RS232串口通信测试程序,可以进行上位机和下位机的串口通讯
- 2023-02-27 11:30:04下载
- 积分: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
-
音频适配器样品
提交的代码提供设备驱动程序的 windows 服务音频适配器驱动程序,可以在 Visual studio 中直接编译和安装的功能。
- 2023-03-16 06:05:03下载
- 积分:1
-
eight digital vc the original document, with a manual only to the design of the...
八数码问题的vc原文件,用人工只能的a算法来设计的,请大家执教-eight digital vc the original document, with a manual only to the design of the algorithm, please coach
- 2022-03-23 18:56:31下载
- 积分:1
-
一个关于模拟火燃烧的例子,用到了最简单的模糊算法。
一个关于模拟火燃烧的例子,用到了最简单的模糊算法。-A fire on the simulation example, using the most simple fuzzy algorithm.
- 2023-04-19 04:20:02下载
- 积分:1
-
hough变换,真的很好用,可以试一试
matlab运行
hough变换,真的很好用,可以试一试
matlab运行-hough transform, really good use, you can try to run matlab
- 2022-03-24 15:13:32下载
- 积分:1
-
This is for my use of any continued fraction method is its root value of the num...
这是我编的利用连分式方法计算任意正数根号值的程序。-This is for my use of any continued fraction method is its root value of the number of procedures.
- 2022-02-13 20:59:28下载
- 积分:1