-
vb6 spy
vb6源码,取得窗口句柄和画面,最大化最小化窗口或者修改窗口的大小(对于内容显示不全或者窗口内可见范围外还有控件的情况特别有用),修改按钮的可用性等等。
- 2022-02-03 17:39:35下载
- 积分:1
-
本程序是根据何斌的VC++数字图像处理写的图像处理界面,并对其进行改进,如可以实现24位真彩色图像的灰度化...
本程序是根据何斌的VC++数字图像处理写的图像处理界面,并对其进行改进,如可以实现24位真彩色图像的灰度化-This procedure is based on Bin" s VC++ written in digital image processing image processing interface, and to improve it, and if we can achieve 24-bit true color gray-scale image of
- 2022-01-26 05:22:08下载
- 积分:1
-
大地电磁二维正演有限元程序,可以模拟任意地形
大地电磁二维正演有限元程序,可以模拟任意地形,可使用初学者学校,并以此作为基础,,使用matlab语言来编写,打发打发大幅度 发送方式
- 2022-05-12 14:26:00下载
- 积分:1
-
假设你想给用户修改大小和位置的能力…
Suppose you wanted to give the user the ability to modify the size and position on a certain control? This example shows how to implement resizing controls on a dialog box as it is done when drawing controls on a dialog template or visual basic at design time. In order to accomplish this we can use the class CRectTracker to manage all the drawing and resizing of a rectangular frame which also has (optional) 6 resize handlers (as shown in the image above). The first thing, you ll need to do is to invoke a CRectTracker and specify given coordinates: -Suppose you wanted to give the user the ability to modify the size and position on a certain control This example shows how to implement resizing controls on a dialog box as it is done when drawing controls on a dialog template or visual basic at design time. In order to accomplish this we can use the class CRectTracker to manage all the drawing and resizing of a rectangular frame which also has (optional) 6 resize handlers (as shown in the
- 2022-10-29 16:00:03下载
- 积分:1
-
WinCE下的网络聊天试验程序
WinCE下的网络聊天试验程序-WinCE the Internet chat testing procedures
- 2023-08-02 03:30:02下载
- 积分:1
-
Using Kruskal method to generate the minimum spanning tree, using VC6.0 developm...
利用克鲁斯卡尔方法生成最小生成树,用VC6.0开发的-Using Kruskal method to generate the minimum spanning tree, using VC6.0 development
- 2023-04-24 15:30: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
-
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
-
Linux TCP/IP
利用以太网口调试工具和网络控制台,可通过PC机与ARM开发板进行以太网通信,该代码已经调试通过,可实时看到收发的数据,并可以尝试多种网口数据收发方式
- 2022-01-21 23:29:47下载
- 积分:1
-
MFC OpenCV运动目标跟踪
基于VS2010的MFC运动目标跟踪系统,OpenCV版本2.4.6,实现对视频的多目标跟踪
- 2022-08-07 03:07:02下载
- 积分:1