-
IEC8705报文解析
说明: IEC 101、IEC 103、IEC 104协议报文解析工具(iec series message analysis)
- 2021-02-16 16:49:47下载
- 积分:1
-
串口访问功能的小测试程序
说明: 一个含串口访问功能的小测试程序,含多线程,CRC校验 此程序包含了一个串口通讯的类,并能够实现简单的通讯功能,希望对要用API函数写串口通讯程序的朋友有帮助 (a serial access function with a small test program, including multithreading, CRC procedure contains a serial communications category, and to achieve a simple communication, want to use API function to write the serial communication program to help friends)
- 2006-01-02 16:15:47下载
- 积分:1
-
dfx
DFX格式的文件操作例子,可以读出由CAD绘制的保存为DFX格式的图片,附带大量注释(DFX format file manipulation example, can read out by the CAD drawing for the preservation DFX format photographs, Notes of a large number of fringe)
- 2007-03-19 15:26:27下载
- 积分:1
-
回文测试
说明: 编写程序测试用户输入的英文字符串是不是回文。忽略所有的空格的标点符号,并忽略字母的大写和小写形式。(Write a program to test whether the English string entered by the user is palindrome. Ignore all space punctuation and the upper and lower case forms of letters.)
- 2020-06-23 10:20:02下载
- 积分:1
-
DEMO
说明: 一个小的游戏Dome大家可以看看,技术不成熟!大家要多指点啊!源代码大部分再里面,我只切出了一个文件!(A little game we will look at the Dome, the technology was not! We have to show ah! Most of the source code inside again, I just cut out a document)
- 2009-08-10 12:20:56下载
- 积分:1
-
VCgongchenganli
说明: VC的一些工程案例,包括车牌识别,人脸识别,图像处理基本操作等(car license recognization system)
- 2010-04-14 16:25:39下载
- 积分:1
-
读取midi五线谱
读取midi文件,生成五线谱,功能很强大,定义了五线谱的生成数据,定义了midi文件格式的数据结构,扩展性非常强(Read the MIDI file, generate staff, very powerful, the definition of data generation staff, defines the data structure of MIDI file format, scalability is very strong)
- 2021-01-19 11:08:43下载
- 积分:1
-
C# WPF 图片局部放大镜 示例源码
C# WPF 图片局部放大镜 示例源码
- 2018-10-08下载
- 积分:1
-
C# 制作系统服务 实例源码下载
附件中有详细的安装使用文档,大概步骤如下:1.新建Windows项目,选择"Windows服务"类型的工程。2.生成的Program.cs文件中,定义了服务启动的Main函数。 代码 namespace WindowsService1{ static class Program { /// /// 应用程序的主入口点。 /// static void Main() { ServiceBase[] ServicesToRun; ServicesToRun = new ServiceBase[] { new Service1() }; ServiceBase.Run(ServicesToRun); } }} 3.在新建的工程中,点击Service1.cs文件,切换到代码视图,生成的代码继承于ServiceBase基类,并重载了OnStart和OnStop方法。我在这个文件中进行了一些简单的操作,就是在服务开始的时候,定义一个定时器,然后每隔1秒钟,向文件中写入当前时间。 代码 namespace WindowsService1{ public partial class Service1 : ServiceBase { Timer timer; public Service1() { InitializeComponent(); } protected override void OnStart(string[] args) { timer = new Timer(1000); timer.Elapsed = new ElapsedEventHandler(timer_Elapsed); timer.Start(); } protected override void OnStop() { timer.Stop(); timer.Dispose(); } void timer_Elapsed(object sender, ElapsedEventArgs e) { string filePath = AppDomain.CurrentDomain.BaseDirectory "test.txt"; StreamWriter sw = null; if (!File.Exists(filePath)) { sw = File.CreateText(filePath); } else { sw = File.AppendText(filePath); } sw.Write("访问时间:" DateTime.Now.ToString() Environment.NewLine); sw.Close(); } }}4.向工程中添加一个安装程序类。 4.在新添加的安装程序类中,设定服务的名称,启动方式,账号名和密码等信息。 代码 namespace WindowsService1{ partial class Installer1 { /// /// 必需的设计器变量。 /// private System.ComponentModel.IContainer components = null; private System.ServiceProcess.ServiceProcessInstaller spInstaller; private System.ServiceProcess.ServiceInstaller sInstaller; /// /// 清理所有正在使用的资源。 /// /// 如果应释放托管资源,为 true;否则为 false。 protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } #region 组件设计器生成的代码 /// /// 设计器支持所需的方法 - 不要 /// 使用代码编辑器修改此方法的内容。 /// private void InitializeComponent() { components = new System.ComponentModel.Container(); // 创建ServiceProcessInstaller对象和ServiceInstaller对象 this.spInstaller =new System.ServiceProcess.ServiceProcessInstaller(); this.sInstaller = new System.ServiceProcess.ServiceInstaller(); // 设定ServiceProcessInstaller对象的帐号、用户名和密码等信息 this.spInstaller.Account = System.ServiceProcess.ServiceAccount.LocalSystem; this.spInstaller.Password = null; this.spInstaller.Username = null; // 设定服务的名称 this.sInstaller.ServiceName = "WindowsService1"; //设定服务启动的方式 this.sInstaller.StartType = System.ServiceProcess.ServiceStartMode.Automatic; this.Installers.AddRange(new System.Configuration.Install.Installer[] { this.spInstaller,this.sInstaller}); } #endregion }}5.生成工程,在bin目录下会生成exe文件。如果直接运行exe文件的话,是不能执行的,需要使用安装Windows服务用到一个名为InstallUtil.exe的命令行工具,打开命令行工具,转到InstallUtil.exe的目录下,我安装的是VS 2010,对应的目录为:C:WindowsMicrosoft.NETFrameworkv4.0.30319InstallUtil.exe,然后执行InstallUtil.exe 待执行的exe文件的目录,如:InstallUtil.exe F:MyProjectWindowsService1WindowsService1inDebugWindowsService1.exe。执行成功后,会在Windows的服务中,出现了刚刚添加的服务的名称。 6.启动该服务,这时打开binDebug文件夹,发现已经生成了一个test.txt的文件,里面记录了时间。这说明服务已经正式开始执行。7.停止服务的操作也和简单,打开命令行工具,转到C:WindowsMicrosoft.NETFrameworkv4.0.30319目录,然后执行InstallUtil.exe - u F:MyProjectWindowsService1WindowsService1inDebugWindowsService1.exe命令就可以了。
- 2015-04-21下载
- 积分:1
-
MatLabbiancheng
说明: 用于MATLAB编程及开发,解决实际问题,(For MATLAB programming and development, to solve practical problems,)
- 2010-04-24 09:46:52下载
- 积分:1