-
delphi实现多桌面切换,工作玩游戏的好助手
delphi实现多桌面切换,工作玩游戏的好助手-Multdesk
- 2023-06-05 15:45:03下载
- 积分:1
-
汉字显示程序Display HanZI
汉字显示程序Display HanZI-Chinese character display program Display HanZI
- 2023-06-29 19:00:04下载
- 积分:1
-
BMP查看器
bmp viewer
- 2022-03-21 17:37:10下载
- 积分:1
-
本人两年前开发的移动给小灵通发短消息的程序,原理是用一个gsm modem接收从移动手机发过来的消息并解码成为文字信息,然后通过电信的web网站发送给小灵通,虽...
本人两年前开发的移动给小灵通发短消息的程序,原理是用一个gsm modem接收从移动手机发过来的消息并解码成为文字信息,然后通过电信的web网站发送给小灵通,虽然现在是废物,但是对学习gsm modem的操作大有好处,尤其是短消息编码解码,at命令操作等,该程序在实达的某款gsm modem上通过,也可以用一个老的nokia手机代替,但是我没有try过,自己简单调试一下即可-mobile PHS send text messages to the procedures, principle is a GSM modem reception from mobile phones made up of news and decoding as text messages, then Telecom web site sent to PHS, although now is the waste, but learning to operate the GSM modem large good, especially short news codec, at order operation, in the process of a particular Shida Public gsm adopted modem can also use an old nokia phones in place, but I did not try that I can simply about debugging
- 2022-09-30 03:50:03下载
- 积分:1
-
Program receives the user types a line character (the number of no more than 80...
程序接收用户键入的一行字符(字符个数不超过80个,该字符串用回车符结束),并按字母、数字及其他字符分类计数,然后将结果存入以letter、digit和other为名的存储单元中。-Program receives the user types a line character (the number of no more than 80 characters, the string end with a carriage return), according to letters, numbers and other characters were counted, and the results stored in order to letter, digit and the other in the name of the storage unit.
- 2023-05-14 03:05:03下载
- 积分:1
-
an .net Source code for send Email With Attachment
an .net Source code for send Email With Attachment
- 2022-09-06 02:10:03下载
- 积分:1
-
MFC 双缓冲技术——————单鱼游弋。
基于MFC,利用双缓冲技术客服了画面闪烁的缺点,完成多幅位图的加载,实现了单鱼游弋的效果。
- 2022-02-15 08:13:59下载
- 积分:1
-
dsfgds DSF DSF
DS fdsfsdfds FDSA F或DSAF DSFfdsfdsdsdsfdsdsdsdsdsdsdsdsdsdsdsds dsffffffffffffffffffffffffff dsfddddddddddddddddddddd或DSDS fdsfdsfdsfd水井坊ldsjlfjdsl jfldsj fljdslajf dsfjdsJD的;jfdsj;F JDS;JF DSF ;SD;fjds JF;DSFDSJF JDS ;F dsjf;L dsjfjdsFJDSJ F;ljds;fjds ;JF;DSJ ;fjds;JF;dsjf JDS FJ;;;;dsjf;DS
- 2022-04-29 03:41:23下载
- 积分:1
-
感应电机的控制
induction motor control
- 2022-11-07 07:20:03下载
- 积分: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