随笔分类 - C#
摘要:发送端/接收端 运行结果如图 NetMQ官方主页:http://netmq.readthedocs.io/en/latest/
阅读全文
摘要:参考资料说明 SuperSocket文档 http://docs.supersocket.net/ Protobuf语言参考 https://developers.google.com/protocol-buffers/docs/proto 单消息多类型解决方案 https://developers
阅读全文
摘要:第一个测试的proto文件 第二个测试proto文件 分别生成C#源文件 例子程序 程序执行结果
阅读全文
摘要:因为动态连接库需要对DBT_DEVICEARRIVAL、DBT_DEVICEREMOVECOMPLETE等消息的处理,所以拿一个不太理想的Hid的动态库片段来说明,说明部分其它代码有不严格的地方,功能性实测末尾有实测的代码片段,不多说直接上代码! 1 // 下列 ifdef 块是创建使从 DLL 导
阅读全文
摘要:因为近段时间接触Hid相对来说多一些,由此忽略了串口中获取cbInQue这个重要的东西,下面是错误代码 1 // Win32SerialPortLib.cpp : 定义 DLL 应用程序的导出函数。 2 // 3 4 #include "stdafx.h" 5 #include "Win32Seri
阅读全文
摘要:1 例子1: 2 3 public class MyClass 4 { 5 public MyClass() 6 { 7 DisplayValue(); //这里不会阻塞 8 System.Diagnostics.Debug.WriteLine("MyClass() End."); 9 } 10 ...
阅读全文