-
= = = = = =
=== ===
Convert decimal value to binary
=======================================
This code can be used to convert
values to binary format (bits:
zeros and ones).
Use toBIN_WORD() function to convert
integers (16 bits), and
toBIN_BYTE() to convert bytes (8 bits).
Visit my Homepage:
http://www.geocities.com/emu8086/vb/
Last Update: Thursday, July 11, 2002
Copyright 2002 Alexander Popov Emulation Soft.
All rights reserved.
http://www.geocities.com/emu8086/- === === === ===
Convert decimal value to binary
=======================================
This code can be used to convert
values to binary format (bits:
zeros and ones).
Use toBIN_WORD() function to convert
integers (16 bits), and
toBIN_BYTE() to convert bytes (8 bits).
Visit my Homepage:
http://www.geocities.com/emu8086/vb/
Last Update: Thursday, July 11, 2002
Copyright 2002 Alexander Popov Emulation Sof
- 2022-06-17 10:10:48下载
- 积分:1
-
Siano' s DAB chip Wince5.0 under all driving source. Data communication part...
Siano的DAB芯片在Wince5.0下的全部驱动源码。数据通信部分用微软的NDIS库编写。-Siano" s DAB chip Wince5.0 under all driving source. Data communication part of the preparation with Microsoft" s NDIS library.
- 2022-03-23 07:18:25下载
- 积分:1
-
USB监控源码
usb监听源码,需要安装DDK环境中运行-usb monitor source
- 2023-03-23 15:10:03下载
- 积分:1
-
remoting 入门,很经典的几个例子,是源代码的,不错哦
remoting 入门,很经典的几个例子,是源代码的,不错哦-remoting entry, it is a few examples of classic and is the source code, yes oh
- 2023-07-10 23:35:03下载
- 积分:1
-
生成均匀随机分布数据点集的程序。Fortran90编程。
The program allows the user to choose:
M, t...
生成均匀随机分布数据点集的程序。Fortran90编程。
The program allows the user to choose:
M, the spatial dimension
N, the number of points to generate
SEED, the initial seed value.
Once these parameters are set, the program generates the data, and writes it to a file. The user may then specify another set of data, or terminate the program.
-UNIFORM_DATASET is a FORTRAN90 program which creates a uniform random dataset and writes it to a file.
- 2023-09-09 19:50: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
-
在 EMS/XMS/DISK 建立交换文件的MSC和TC源程序库,c语言编写,需要在tc下编译。...
在 EMS/XMS/DISK 建立交换文件的MSC和TC源程序库,c语言编写,需要在tc下编译。-in EMS/XMS/DISK exchanged documents establishing the MSC and TC source library, c language, the need tc compiler.
- 2023-07-10 13:25:02下载
- 积分:1
-
I think this book is learning c++ classic books worth learning
我觉得这本书是学习c++的经典书籍值得大家学习-I think this book is learning c++ classic books worth learning
- 2022-01-25 13:51:25下载
- 积分:1
-
dnw官方源代码
用语配置串口通信和USB通信。而阅读其源代码,则能尽快的熟悉和掌握pc机和目标设备之间的通信机制,更快更好的完成应用程序的开发——其功能是PC机和特定开发板之间通信
- 2022-05-23 09:41:45下载
- 积分:1
-
零件切割问题
给定一块宽度为W的矩形板,矩形板的高度不受限制。现需要从板上分别切割出n个高度为hi,宽度为wi的矩形零件。切割的规则是零件的高度方向与矩形...
零件切割问题
给定一块宽度为W的矩形板,矩形板的高度不受限制。现需要从板上分别切割出n个高度为hi,宽度为wi的矩形零件。切割的规则是零件的高度方向与矩形板的高度方向保持一致。问如何切割使得所使用的矩形板的高度h最小?
-parts cutting issue for a fixed width of the rectangular plate W, the height of rectangular plate unrestricted. Need from the board is cutting out respectively n height of the hi, wi width of the rectangular parts. Cutting parts to the rules of the height of the rectangular plate with a high degree of consistent direction. Asked how cutting makes use of the rectangular plate height h minimum?
- 2022-02-02 15:40:05下载
- 积分:1