摘要:
用VS 2013 ,配置Spring后,运行时出现如下错误:Spring.Context.Support.ContextRegistry”的类型初始值设定项引发异常。原因:App.config配置文件,startup放到文件前了。解决方法:将startup放到最后,问题没有了。 ... 阅读全文
摘要:
原文出处: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( 阅读全文
摘要:
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 阅读全文