只有18分了。来请教一个问题。dword是什么类型?对应在.net是什么,或者vb里,是什么类型的?
同时,有如下的数据类型希望可以知道。请各位C++高手告诉我:
OVERLAPPED
DWORD
这两个是什么类型了?
如果是枚举类型,枚举内容如何?如果是structure,那么结果如何。请了解这个的朋友不吝赐教。
问题点数:18、回复次数:3Top
1 楼wangjia184(我就是传说中的。。。。。。SB)回复于 2004-12-04 10:07:44 得分 9
Overlapped 类型支持 .NET Framework 结构,因此不适用于直接从代码中使用。
Overlapped operations enable a thread to execute a time-consuming I/O operation in the background, leaving the thread free to perform other tasks. To enable overlapped I/O operations on a communications resource, the thread must specify the FILE_FLAG_OVERLAPPED flag in the CreateFile function when the handle is opened. To execute the ReadFile or WriteFile function as an overlapped operation, the calling thread must specify a pointer to an OVERLAPPED structure.The OVERLAPPED structure must contain a handle to a manual-reset (not an auto-reset) event object. The system sets the state of the event object to not-signaled when a call to the I/O function returns before the operation has been completed. The system sets the state of the event object to signaled when the operation has been completed. The thread uses a wait function to check the current state of the event object or to wait for its state to be signaled.
Top
2 楼hjunxu(hjun)回复于 2004-12-04 10:11:12 得分 9
typedef unsigned long DWORD;
typedef struct _OVERLAPPED {
ULONG_PTR Internal;
ULONG_PTR InternalHigh;
DWORD Offset;
DWORD OffsetHigh;
HANDLE hEvent;
} OVERLAPPED;
Top
3 楼wuyazhe(wyz&xyl)回复于 2004-12-04 10:14:31 得分 0
谢谢楼上2位的热心。 揭帖。Top
相关问题
- 怎样用VB编程向注册表中添加dword类型的键值也就是(0x00000001 (1))类型键值?
- 怎样用VB编程向注册表中添加dword类型的键值也就是(0x00000001 (1))类型键值?
- 用VB怎样向注册表中dword类型的键值写(0xffffffff ),我用long,类型写入总是溢出。。。
- 如何将CString类型转为DWORD?
- DWORD是什么数据类型啊?
- 请问WORD,DWORD...是什么类型呢?
- 各位高手,请问DWORD类型到底是什么类型?
- 请问Dword类型能转换到String类型吗?
- 关于vb的Form类型
- 急急急急急!如何将dword类型转化为_variant_t类型?




