摘要: 用VS 2013 ,配置Spring后,运行时出现如下错误:Spring.Context.Support.ContextRegistry”的类型初始值设定项引发异常。原因:App.config配置文件,startup放到文件前了。解决方法:将startup放到最后,问题没有了。 ... 阅读全文
posted @ 2015-05-20 16:46 dingqiuMaster 阅读(1373) 评论(0) 推荐(0) 编辑
摘要: 原文出处:http://www.codeproject.com/KB/install/cswindowsservicedesktop.aspxAll the services are in the registry under the following key:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\ServicesCollapse | Copy Codepublic WindowsServiceInstaller(){ // This call is required by the Designer. InitializeComponent( 阅读全文
posted @ 2011-09-27 22:45 dingqiuMaster 阅读(218) 评论(0) 推荐(0) 编辑
摘要: Type t = Type.GetTypeFromProgID("ActiveXTestLib.MyAxControlTest");object o = System.Activator.CreateInstance(t); [Guid("D6F88E95-8A27-4ae6-B6DE-0542A0FC7039")] [InterfaceType(ComInterfaceType.InterfaceIsIDispatch)] public interface _Functions { [DispId(1)] string DoSearch(string 阅读全文
posted @ 2011-09-23 12:23 dingqiuMaster 阅读(202) 评论(0) 推荐(1) 编辑