AxInterop.TeeChart.dll和Interop.TeeChart.dll注册的问题
我有两个应用程序都使用了图表控件,然而我卸载了其中一个软件,另一个就会报"System.Runtime.InteropServices.COMException (0x80040154): Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))",重新安装就没有异常。
后来我想在程序里面注册,但是注册两个都无法成功,提示找不到DllUnregisterServer入口点。
代码如下:
public FormMDIParent()
{
RegistryKey rkTest = Registry.ClassesRoot.OpenSubKey("CLSID\\{B6C10482-FB89-11D4-93C9-006008A7EED4}\\");
string pathdll = "/u D:\\wanwei\\Mysoft\\Thermograph\\C#_TEMPerLive\\C#_TEMPerLive\\TEMPerLive\\obj\\x86\\Release\\Interop.TeeChart.dll";
if (rkTest == null)
{ //Dll没有注册,在这里调用DllRegisterServer()吧}
ReagDll(pathdll);
pathdll = "/u D:\\wanwei\\Mysoft\\Thermograph\\C#_TEMPerLive\\C#_TEMPerLive\\TEMPerLive\\obj\\x86\\Release\\AxInterop.TeeChart.dll";
ReagDll(pathdll);
}
InitializeComponent();
}
public void ReagDll(string path)
{
Process p = new Process();
p.StartInfo.FileName = "Regsvr32.exe";
p.StartInfo.Arguments = path;//路径中不能有空格
p.Start();
p.WaitForExit(5000);
}
还有我在计算机注册表里面也找不到CLSID中图表控件注册dll ID。
后来我想在程序里面注册,但是注册两个都无法成功,提示找不到DllUnregisterServer入口点。
代码如下:
public FormMDIParent()
{
RegistryKey rkTest = Registry.ClassesRoot.OpenSubKey("CLSID\\{B6C10482-FB89-11D4-93C9-006008A7EED4}\\");
string pathdll = "/u D:\\wanwei\\Mysoft\\Thermograph\\C#_TEMPerLive\\C#_TEMPerLive\\TEMPerLive\\obj\\x86\\Release\\Interop.TeeChart.dll";
if (rkTest == null)
{ //Dll没有注册,在这里调用DllRegisterServer()吧}
ReagDll(pathdll);
pathdll = "/u D:\\wanwei\\Mysoft\\Thermograph\\C#_TEMPerLive\\C#_TEMPerLive\\TEMPerLive\\obj\\x86\\Release\\AxInterop.TeeChart.dll";
ReagDll(pathdll);
}
InitializeComponent();
}
public void ReagDll(string path)
{
Process p = new Process();
p.StartInfo.FileName = "Regsvr32.exe";
p.StartInfo.Arguments = path;//路径中不能有空格
p.Start();
p.WaitForExit(5000);
}
还有我在计算机注册表里面也找不到CLSID中图表控件注册dll ID。
...全文
相关推荐
外盘期货历史高频tick数据覆盖了CME、ICE、Eurex等主要交易所的主流品种,包括轻质原油、黄金、标普500指数、恒生指数、富时A50指数、欧元、英镑等期货合约 每条数据都记录了精确到毫秒的时间
外盘期货历史高频tick数据覆盖了CME、ICE、Eurex等主要交易所的主流品种,包括轻质原油、黄金、标普500指数、恒生指数、富时A50指数、欧元、英镑等期货合约。每条数据都记录了精确到毫秒的时间戳、成交价格、成交量,部分品种还提供买一价和卖一价。数据按交易日存储,完整保留了盘中每一笔成交明细,适合用于回测、微观结构分析或策略研究。 数据源:CMES金融数据库
5G医学数字影像服务平台建设方案.pptx
5G医学数字影像服务平台建设方案.pptx
仓储物流信息化管理系统建设方案共79页.pptx
仓储物流信息化管理系统建设方案共79页.pptx
AI大模型赋能企业数字化转型总体规划与实施路径.pptx
AI大模型赋能企业数字化转型总体规划与实施路径.pptx
无人机集群分布式协同欺骗技术 Matlab 仿真代码.zip
无人机集群分布式协同欺骗技术 Matlab 仿真代码.zip


