当使用(uint)-1时,编译器会给出警告:常量-1无法转换为uint,使用unchecked语句重写.DWORD在转换为C#类型时为uint,既然无法使用uint强制转型(-1),那就需要其他办法了.既然编译器给出的提示是使用unchecked语句重写,可以一试.之前没有使用过unchecked语句,所以不熟悉其用法.看了下参考文档,MSDN是这样描述unchecked的: The unchecked keyword is used to suppress overflow-checking…
In this tutorial we will learn How to communicate with an external device like a microcontroller board or modem using the Serial port of a windows PC(Windows XP,7). The software is written using C language and communicates with the Serial Port using …
MSDN文章<Microsoft Win32 to Microsoft .NET Framework API Map> 介绍了.net 类库对win32的封装 从.NET平台调用Win32 API http://liutiemeng.blog.51cto.com/120361/18764/ Win32调试API原理 http://blog.csdn.net/steven6977/article/details/12205331…