-
打开并修改一个文件中的一小部分,Vc的实例程序设计。
打开并修改一个文件中的一小部分,Vc的实例程序设计。-open and modify a document of a small part, Vc examples of program design.
- 2022-03-06 21:36:05下载
- 积分:1
-
a time of the ActiveX Programming
一个有关时间的ActiveX编程-a time of the ActiveX Programming
- 2022-01-26 03:53:54下载
- 积分:1
-
这种程序实在是简单得不能再简单,网上随处可见,不过我既然写了一个,也放上来吧,附上源码。使用方法请查看压缩包中的Readme文件。...
这种程序实在是简单得不能再简单,网上随处可见,不过我既然写了一个,也放上来吧,附上源码。使用方法请查看压缩包中的Readme文件。 -this procedure is utterly simple, Internet can be seen everywhere, but since I was an also Fangshanglai bar, accompanied source. Please see use of compressed readme file.
- 2023-08-22 17:40:03下载
- 积分:1
-
用以修复任务栏无法正常显示正在运行的程序的问题。此程序绝对有效...
用以修复任务栏无法正常显示正在运行的程序的问题。此程序绝对有效-use to fix the problem caused by the running programs those can not be displayed normally in the task-bar.
absolutely work!
- 2022-03-26 17:08:15下载
- 积分:1
-
edit control
edit control
- 2022-04-23 14:20: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
-
C++Builder成绩提交小程序
C++Builder成绩提交小程序-C Builder results submitted small program
- 2022-02-05 12:04:22下载
- 积分:1
-
Realate texture of openGL.It s example of NEHE.
Realate texture of openGL.It s example of NEHE.
- 2022-06-12 03:34:01下载
- 积分:1
-
#包括<;STDLIB. H & gt;
#include
#include
#include
//#include
#include "debugmalloc.h"
#include "dmhelper.h"
/*Define the macro */
#define ALIGN 8
#define FENCE 0xDEADBEEF
#define HEADERSIZE sizeof(struct header)
#define FOOTERSIZE sizeof(struct footer)-#include
#include
#include
//#include
#include "debugmalloc.h"
#include "dmhelper.h"
/*Define the macro*/
#define ALIGN 8
#define FENCE 0xDEADBEEF
#define HEADERSIZE sizeof(struct header)
#define FOOTERSIZE sizeof(struct footer)
- 2022-01-20 23:08:39下载
- 积分:1
-
自适应均衡器的仿真程序:在120hz信号下去处50hz干扰
自适应均衡器的仿真程序:在120hz信号下去处50hz干扰-adaptive equalizer Simulation : 120hz signal on the Department 50hz interference
- 2023-07-31 19:30:03下载
- 积分:1