-
医学成像中的代数重建算法
an algorithm for algebraic reconstruction technique in medical imaging
- 2022-01-28 11:09:02下载
- 积分:1
-
这个是VFP的课程设计~在设计的时候语句有问题导致有时会出现一点小错误~有经验的人麻烦帮我看一下...
这个是VFP的课程设计~在设计的时候语句有问题导致有时会出现一点小错误~有经验的人麻烦帮我看一下-This is a course design in VFP~There are some min mistakes in the sentence make the programe doesn t run correct sometimes.If you are the salted one please help me.
- 2023-08-14 11:10:03下载
- 积分:1
-
window graph
window graph
- 2022-05-28 10:57:21下载
- 积分:1
-
sample exchange for MT5Gateway
This code is a sample exchange program through sample gateway to connect Metatrade 5 platform .
This code is a sample exchange program through sample gateway to connect Metatrade 5 platform .
This code is a sample exchange program through sample gateway to connect Metatrade 5 platform .
- 2022-01-31 20:06:49下载
- 积分:1
-
图形按钮CButtonST最新版
图形按钮CButtonST最新版-graphical buttons CButtonST latest version
- 2022-03-23 13:52:36下载
- 积分:1
-
Tsinghua University Wei
清华大学魏敏艳数据结构习题答案,虽然有些答案但它们都是很有启发性的小程序,适合初学者
- 2023-01-12 05:45:03下载
- 积分:1
-
资料比较好
有程序,容易学习
容易看的懂
资料比较好
有程序,容易学习
容易看的懂-Better information on procedures, easier to learn to read easy to understand
- 2022-03-15 01:09:03下载
- 积分:1
-
visual c++ 写的splashWin
visual c++ 写的splashWin
- 2022-03-15 07:52:58下载
- 积分: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
-
用VHDL语言编写的数字显示器,包括风轮旋转和十字扫描
用VHDL语言编写的数字显示器,包括风轮旋转和十字扫描-prepared using VHDL digital displays, including rotating round of the wind and cross scanning
- 2022-11-23 05:30:03下载
- 积分:1