![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C#
文章平均质量分 81
karl_city
这个作者很懒,什么都没留下…
展开
-
快速实现C# 调用C++ DLL
实际开发中C#的的项目历史较短,大量的第三方老设备或者胸痛应用提供的都是C++的范例,再去深入学习C++有些难度。下面是最近一个小项目的体会:1. 加载DLL文件时注意参数:CallingConvention = CallingConvention.Cdecl, .Cdecl参数要和DLL的设定一致。刚开始开发时碰运气,因为第三方的DLL协议文件里不会说明这个。在调试时常出现这个错误:对 PIn...原创 2018-03-24 10:13:08 · 187 阅读 · 0 评论 -
C# TCPclient 服务器保持长连接的一种办法(变相的心跳包功能)
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using System.Net;using System.Net....原创 2018-12-30 15:19:28 · 2397 阅读 · 0 评论