-
hex转bin的程序
hex转bin的程序, 支持大于64K的hex, 网上下载的Hex2Bin不支持64k. 包含工程文件, 简单包装即可生成一个Hex2Bin的小程序【核心代码】 String szLine = ""; String szHex = ""; if (szHexPath == "") { MessageBox.Show("请选择需要转换的目标文件! ", "错误"); return; } StreamReader HexReader = new StreamReader(szHexPath); while (true) { szLine = HexReader.ReadLine(); //读取一行数据 if (szLine == null) //读完所有行 { break; } if (szLine.Substring(0, 1) == ":") //判断第1字符是否是: { if (szLine.Substring(1, 8) == "00000001")//数据结束 { break; } szHex = szLine.Substring(9, szLine.Length - 11); //读取有效字符 } } HexReader.Close(); //关闭目标文件 Int32 i; Int32 j = 0; Int32 Length = szHex.Length; byte[] szBin = new byte[Length]; pbConvert.Maximum = Length / 2; for (i = 0; i < Length; i = 2) //两字符合并成一个16进制字节 { szBin[j] = (byte)Int16.Parse(szHex.Substring(i, 2), NumberStyles.HexNumber); j ; pbConvert.Increment(i); } if (szBinPath == "") { szBinPath = Path.ChangeExtension(szHexPath, "bin"); tbBinPath.Text = szBinPath; } FileStream fBin = new FileStream(szBinPath, FileMode.Create); //创建文件BIN文件 BinaryWriter BinWrite = new BinaryWriter(fBin); //二进制方式打开文件 BinWrite.Write(szBin, 0, Length); //写入数据 BinWrite.Flush();//释放缓存 BinWrite.Close();//关闭文件 MessageBox.Show("文件转换完成! ", "提示"); } catch (Exception ex) { MessageBox.Show(ex.ToString()); }
- 2020-12-05下载
- 积分:1
-
wavelet_atrous
This is a wavelet program.
- 2012-07-27 10:11:25下载
- 积分:1
-
????????
说明: Rotating inverted pendulum source program pid control motor WDD55D5 angular displacement sensor
- 2019-02-24 17:17:41下载
- 积分:1
-
DAC0832
DAC0832的应用,DAC0832的应用(DAC0832' s application, DAC0832 application)
- 2012-06-25 22:43:27下载
- 积分:1
-
diercishiyan
我司通原F1型实验箱的二次开发功能是让用户通过自主设计,加深对有关实验内容所涉及的理论知识的理解和掌握。用户在掌握CPLD和DSP开发技术的基础上,以我司提供的实验箱为硬件,自主实现我司通原F1型实验箱已有的及相关的功能。(Our former F1 experimental me through secondary development function is to allow users to independently design and deepen the theoretical knowledge about the contents of the experiment involved to understand and master. Users control CPLD and DSP development technology based on our experimental boxes provided for the hardware, through self-realization of our original F1 experimental me already and related functions.)
- 2014-02-24 22:43:06下载
- 积分:1
-
RS485-basic-communication-principles
RS485通信的源代码,可进行两个系统之间信号的传递,介绍其编程规则(RS485 communications source code, can be passed between the two signal systems, introduces its programming rules)
- 2016-04-13 21:00:22下载
- 积分:1
-
DirectX3D for this code, without extracting yards
此为DirectX3D代码,无需解压码-DirectX3D for this code, without extracting yards
- 2022-05-14 18:58:37下载
- 积分:1
-
classes can be imported to the academic performance of students and other inform...
可以输入班级里学生的成绩和其他信息,便于管理-classes can be imported to the academic performance of students and other information to facilitate management
- 2022-03-06 20:28:24下载
- 积分:1
-
C#开发的贪吃蛇游戏 完整源码实例下载
用C#开发的最经典的贪吃蛇游戏源码
- 2013-01-09下载
- 积分:1
-
数据结构C语言版
《数据结构》这门课程是信息与计算科学专业中一门重要的专业基础课程。当用计算机来解决实际问题时,就要涉及到数据的表示及数据的处理,而数据表示及数据处理正是数据结构课程的主要研究对象,通过这两方面内容的学习,为后续课程,特别是软件方面的课程打下了厚实的知识基础,同时也提供了必要的技能训练。我们主要学习的数据结构包括队列、堆、栈、链表、树和图等。通常情况下,精心选择合适的数据结构可以带来更高的存储效率,因此,数据结构课程在计算机应用专业中具有举足轻重的作用。(Data Structure is an important basic course in information and computing science. When using computers to solve practical problems, it is necessary to involve data representation and data processing, and data representation and data processing are the main research objects of data structure course. Through the study of these two aspects, it lays a solid knowledge foundation for follow-up courses, especially for software courses, at the same time. Necessary skill training is provided. The main data structures we learn include queues, heaps, stacks, linked lists, trees and graphs. Usually, choosing the right data structure carefully can bring about higher storage efficiency. Therefore, the course of data structure plays an important role in computer application specialty.)
- 2020-06-19 02:40:01下载
- 积分:1