-
C#自动更新服务(本地服务安装)
using System;using System.Collections.Generic;using System.Linq;using System.Text;using Common.WinService;using Common.Log;using System.Threading;using Common.Net;using System.Text.RegularExpressions;namespace Collection.AutoRunner{ //获取学生信息 public class Service_Update_Data : IWindowsService { private ILogWriter _logWriter = null; private const string logCategory = "Services.Info"; private string logInfoSource = "Update_Data"; private const string logErrorCategory = "Services.Error"; private const string logErrorSource = "Update_Data_Error"; private bool BeStop = true; private System.Timers.Timer timer = null; public void Start(Common.Log.ILogWriter logWriter, string gameCode) { gameCode = gameCode.ToUpper(); logInfoSource = gameCode; _logWriter = logWriter; BeStop = false; StartRequestData(); } int stata = 0; private void StartRequestData() { try { #region 配置 //时间频率 var UpdateStudentSpan = ServiceHelper.GetInterval("UpdateData"); //更新学生开始时间 var studentbegintime = ServiceHelper.GetInterval("StudentBeginTime"); //更新学生结束时间 var studentendtime = ServiceHelper.GetInterval("StudentEndTime"); //是否更新学生基本信息:true为更新 false为不更新 var IsUpdateStudnet =Convert.ToBoolean(ServiceHelper.GetSystemConfig("IsUpdateStudnet")); #endregion timer = ServiceHelper.ExcuteByTimer(UpdateStudentSpan, () => { int timeHour = DateTime.Now.Hour; if (timeHour == 3) stata = 0; #region 更新学生基本信息 if (studentbegintime
- 2015-03-11下载
- 积分:1
-
BoostTest
说明: 编写过MFC程序的朋友都知道,通过资源编辑器编辑菜单项,设定菜单项ID,然后MFC内部通过该ID来映射菜单命令处理函数和菜单界面更新函数。我设想撇开MFC的资源编辑,在MFC程序中通过xml文件来进行界面配置,然后利用字符串来映射消息处理函数。借助boost库,我实现了这一设想。具体就是在xml文件指定一个字符串,然后通过这个字符串就能找到它的命令消息处理函数和界面更新命令消息处理函数。(MFC write-off procedures friends all know, through the resource editor to edit the menu item, set the menu item ID, and MFC-house by the ID to map menu and menu command handling function update function. I imagine MFC resource editor aside, the MFC program carried out by the interface configuration xml file, and then use the string to map the message processing function. Using boost libraries, I realized that vision. Specific xml file is to specify a string, then the string can find its command message processing functions and interface update command message processing function.)
- 2021-02-04 15:09:57下载
- 积分:1
-
RJCQDWI
说明: 6 ways to start other programs
- 2018-12-25 10:27:51下载
- 积分:1
-
DisWinLynn
说明: 自己写的一个可以屏蔽系统键的程序,可以屏蔽WIN键,当然你可以修改其他屏蔽键!(玩魔兽时防止按错退出写的一个自己用的辅助工具)(himself in a system can shield key procedures, shielding WIN button, of course, you can modify other shielding keys! (Barry wrong by preventing the withdrawal was made with one of his aids))
- 2005-10-08 13:21:56下载
- 积分:1
-
CCpuId100
得到CPU信息的程序.不过好像不准.(Program which obtains CPU information, But it seems not so accuracy.)
- 2002-04-19 09:18:04下载
- 积分:1
-
CPaintDCDemo
第6章 设备描述表和图形对象CPaintDCDemoCPaintDCDemo.rar,很不错的vc源码,有兴趣的朋友可以看看。(Chapter 6 describes the tables and graphics device object CPaintDCDemo CPaintDCDemo.rar, very good vc source, interested friends can see.)
- 2011-09-11 23:02:40下载
- 积分:1
-
ccnvecixntapplication
A MATLAB application, very convenient!
- 2017-05-11 13:06:42下载
- 积分:1
-
AGS
matlab dct-lms自适应算法仿真例子,该例子做了dct-lms和lms的比较,(Matlab DCT - LMS adaptive algorithm simulation example, the example has made the DCT - LMS and the comparison of LMS,)
- 2020-12-07 16:39:22下载
- 积分:1
-
CSA算法MATLAB代码
本代码详细的阐述了CSA算法的编写过程 具体参数参考合成孔径雷达成像-算法与实现
- 2019-04-03下载
- 积分:1
-
RationalQuantifyUsage
绝对原创,请站长加分啊,这是用来快速定位性能底下的一段测试代码,配合Quantify使用,上面附有说明,如何定位到。(Rational Quantify Usage)
- 2014-06-06 10:48:34下载
- 积分:1