摘要:        
1. 打开Visual Studio 2012新建一个project Solution;2. 选择Windows->windows Service,修改服务名称:MyFirstService;3. 在默认窗口Service1中右键Add Install,自动生成两个类。 4. 修改serviceInstaller1的属性: a)ServiceName =”Appinfo”; //设置服务名称 b)StartType = Automatic; //启动的模式有三种:“自动”、“手动”、“禁用”。事实上,在“我的电脑”的“管理”->“服务”中,还有一种模式:“自动(延迟启动)” c)M    阅读全文
posted @ 2014-03-07 16:25
快乐就好
阅读(4163)
评论(0)
推荐(0)
        
 
                    
                
 浙公网安备 33010602011771号
浙公网安备 33010602011771号