![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
WPF/MFC
文章平均质量分 70
razilmao
这个作者很懒,什么都没留下…
展开
-
C# String 与 Char[] 数组 相互转换
string 转换成 Char[] string ss = "abcdefg"; char[] cc = ss.ToCharArray();Char[] 转换成string string s = new string(cc);byte[] 与 string 之间的转换 byte[] bb = Encoding.UTF8.GetBytes(ss); string转载 2016-08-23 11:56:14 · 13500 阅读 · 0 评论 -
C# 获取当前时间
转载地址:http://www.cnblogs.com/xjtrab/articles/1878353.html --DateTime 数字型 System.DateTime currentTime=new System.DateTime(); 取当前年月日时分秒 currentTime=System.DateTime.Now; 取当前年 int 年=curr转载 2016-08-25 14:51:57 · 811 阅读 · 0 评论 -
C# String 与 Ushort[] 数组 相互转换
String To Ushort[] 数组输出 思路: string -> char[] -> byte[] -> byte[2] -> ushort -> ushort[] 关键点: string 中有可能出现奇数个char, 而ushort默认储存偶数个char字符,因此需要提前做调整 变量String inString = "123456AABB"原创 2016-08-25 14:54:32 · 11935 阅读 · 1 评论 -
C# 加载C++下DLL 的格式转换
//C#调用C++的DLL搜集整理的所有数据类型转换方式,可能会有重复或者多种方案,自己多测试 //c++:HANDLE(void *) ---- c#:System.IntPtr //c++:Byte(unsigned char) ---- c#:System.Byte //c++:SHORT转载 2016-11-03 17:21:48 · 450 阅读 · 0 评论 -
C#/C++ 文件中插入数据和文件后添加数据的几种方法
文件中插入数据: 先说思路: 小文件: 1.建立byte型数组或者list (新手推荐使用list,C#中能直接使用Insert方法进行数据插入。) List dataBuf = new List(); 2.原创 2016-11-09 00:48:31 · 6593 阅读 · 0 评论