虫虫首页| 资源下载| 资源专辑| 精品软件
登录| 注册

if-else-end

  • //打开 USB 口读写, 由驱动程序的 Pipe 名确定 HANDLE hPipe = OpenMyDevPipe("MyPipe1") //驱动程序里面的 Pipe 名, 对应访问某个端点

    //打开 USB 口读写, 由驱动程序的 Pipe 名确定 HANDLE hPipe = OpenMyDevPipe("MyPipe1") //驱动程序里面的 Pipe 名, 对应访问某个端点的 I/O, 这里我乱写的, 需要与驱动一致 if(hPipe != INVALID_HANDLE_VALUE) //打开 Pipe 成功 { ReadFile(hPipe, Buffer, BufSize, &nBytesRead, NULL) //从 hPipe 里读取数据到 Buffer 里 //WriteFile(hPipe, Buffer, BytesToWrite, &nBytesWritten, NULL) //把 Buffer 里面的 BytesToWrite 字节写入 hPipe CloseHandle(hPipe) } //使用 DeviceIoControl 访问 USB 设备 HANDLE hDevice = OpenMyDevice() if(hDevice != INVALID_HANDLE_VALUE) //打开设备成功 { //这些 DeviceIoControl 功能都是由设备定义的, 具体看设备和驱动的资料 if(DeviceIoControl(hDevice, IOCTL_READ_xxxx, &IOBlock, sizeof(IOBLOCK), &c, 1, &nBytes, NULL)) { //成功 } CloseHandle(hDevice) }

    标签: Pipe OpenMyDevPipe MyPipe1 HANDLE

    上传时间: 2014-11-25

    上传用户:stampede

  • .data val1 sword 0 val sword -276 .code main proc mov ax,val cwd mov bx,10 idiv bx

    .data val1 sword 0 val sword -276 .code main proc mov ax,val cwd mov bx,10 idiv bx mov val1,ax call writebin call crlf mov ax,dx call writebin exit main endp end main

    标签: sword mov val data

    上传时间: 2015-09-21

    上传用户:wlcaption

  • One-channel queuing system simulator (M/M/1) * Arrival and service times are random and distributed

    One-channel queuing system simulator (M/M/1) * Arrival and service times are random and distributed exponetially. * * The simulator is time-slice-driven, i.e. the system model is being * run at discrete time points, with constant increments deltaT. * At each such time moment, program checks if a new item arrival or * release has occurred during previus deltaT.

    标签: One-channel distributed and simulator

    上传时间: 2014-01-15

    上传用户:kr770906

  • * "Copyright (c) 2006 Robert B. Reese ("AUTHOR")" * All rights reserved. * (R. Reese, reese@ece.

    * "Copyright (c) 2006 Robert B. Reese ("AUTHOR")" * All rights reserved. * (R. Reese, reese@ece.msstate.edu, Mississippi State University) * IN NO EVENT SHALL THE "AUTHOR" BE LIABLE TO ANY PARTY FOR * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT * OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE "AUTHOR" * HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

    标签: Reese B. R. Copyright

    上传时间: 2015-09-24

    上传用户:mpquest

  • 这是写给作为软件工程项目经理的书

    这是写给作为软件工程项目经理的书,原书的书评是: "If you re looking for solid, easy-to-follow advice on estimation, requirements gathering, managing change, and more, you can stop now: this is the book for you." --Scott Berkun, Author of The Art of Project Management

    标签: 软件工程 项目

    上传时间: 2013-12-17

    上传用户:225588

  • 我在三做的课程

    我在三做的课程,当时拿到了95分,包括完整的报告,有IF/else/read/for等语句的plo

    标签:

    上传时间: 2014-12-22

    上传用户:123啊

  • American Gladiator,You are consulting for a game show in which n contestants are pitted against n gl

    American Gladiator,You are consulting for a game show in which n contestants are pitted against n gladiators in order to see which contestants are the best. The game show aims to rank the contestants in order of strength this is done via a series of 1-on-1 matches between contestants and gladiators. If the contestant is stronger than the gladiator, then the contestant wins the match otherwise, the gladiator wins the match. If the contestant and gladiator have equal strength, then they are “perfect equals” and a tie is declared. We assume that each contestant is the perfect equal of exactly one gladiator, and each gladiator is the perfect equal of exactly one contestant. However, as the gladiators sometimes change from one show to another, we do not know the ordering of strength among the gladiators.

    标签: contestants consulting Gladiator are

    上传时间: 2013-12-18

    上传用户:windwolf2000

  • 查字典背单词系统

    查字典背单词系统,系统虽小,设计系统使用的知识点很多。 从结构化程序设计的角度来说,使用了结构化程序设计的三种基本结构:顺序结构,分支结构(简单分支、多分支、IF语句的嵌套调用),循环结构(步长型循环、扫描循环)。 从面向对象程序设计的角度来说,用到了各种对象:表单、表单集、标签控件、文本框控件、命令按钮控件、编辑框控件、选项按钮组控件、复选框控件、列表框控件、组合框控件、图象控件、计时器控件、表格控件。用到了以上控件的常用事件、属性和方法。多处用到了自定义属性和自定义方法,使用了表单参数的传递和表单结果的返回。 给出一个很好的随机数使用的实例,宏代换函数和类型测试函数应用,多处使用信息窗口和提示信息窗。

    标签:

    上传时间: 2013-12-18

    上传用户:坏天使kk

  • This manual describes omniidl, the omniORB IDL compiler. It is intended for developers who wish to

    This manual describes omniidl, the omniORB IDL compiler. It is intended for developers who wish to write their own IDL compiler back-ends, or to modify existing ones. It also documents the design of the compiler front-end for those poor souls who have to track the IDL specification.

    标签: developers describes compiler intended

    上传时间: 2015-10-07

    上传用户:84425894

  • madCollection 2.5.2.6 full source This is not your every day VCL component collection. You won t se

    madCollection 2.5.2.6 full source This is not your every day VCL component collection. You won t see many new colored icons in the component palette. My packages don t offer many visual components to play with. Sorry, if you expected that! My packages are about low-level stuff for the most part, with as easy handling as possible. To find the hidden treasures, you will have to look at the documentation (which you re reading just in the moment). Later I plan on writing some nice demos, but for now the documentation must be enough to get you started.

    标签: madCollection collection component source

    上传时间: 2014-01-18

    上传用户:yoleeson