CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
可用分押宝游戏火热进行中... 专题改版:Java Web 专题
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  VC/MFC >  基础类

只有18分了。来请教一个问题。dword是什么类型?对应在.net是什么,或者vb里,是什么类型的?

楼主wuyazhe(wyz&xyl)2004-12-04 10:04:17 在 VC/MFC / 基础类 提问

同时,有如下的数据类型希望可以知道。请各位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类型?

关键词

  • 类型
  • overlapped
  • 是什么
  • signaled
  • operation
  • dword
  • structure
  • thread
  • handle
  • object

得分解答快速导航

  • 帖主:wuyazhe
  • wangjia184
  • hjunxu

相关链接

  • Visual C++类图书
  • Visual C++类源码下载

广告也精彩

反馈

请通过下述方式给我们反馈
反馈
提问
网站简介|广告服务|VIP资费标准|银行汇款帐号|网站地图|帮助|联系方式|诚聘英才|English|问题报告
世纪乐知(北京)网络技术有限公司 版权所有, 京 ICP 证 020026 号
北京创新乐知广告有限公司 提供技术支持
Copyright © 2000-2007, CSDN.NET, All Rights Reserved
GongshangLogo