【发布时间】:2017-05-13 02:27:48
【问题描述】:
我在我的 C# 应用程序中使用 AutoIt dll 从其他程序的活动窗口中获取数据。在我编译此应用程序的计算机上,它工作正常,但是当我尝试在其他计算机上运行它时出现异常:
System.Runtime.InteropServices.COMException (0x80040154): Pobranie fabryki klasy COM dla składnika o identyfikatorze CLSID {1A671297-FA74-4422-80FA-6C5D8CE4DE04} nie powiodło się z powodu następującego błędu:8 (Wyjątek od HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))。
w System.RuntimeTypeHandle.CreateInstance(RuntimeType 类型, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
w System.RuntimeType.CreateInstanceSlow(布尔 publicOnly,布尔 skipCheckThis,布尔填充缓存,StackCrawlMark 和 stackMark)
w System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) w System.Activator.CreateInstance(类型类型,布尔非公共) w System.Activator.CreateInstance(类型类型) w GetFromGam.GetFromGamForm.receiveData() w GetFromGam.GetFromGamForm.receiveButton_Click(对象发送者,EventArgs e) w System.Windows.Forms.Control.OnClick(EventArgs e) w System.Windows.Forms.Button.OnClick(EventArgs e) w System.Windows.Forms.Button.OnMouseUp(MouseEventArgs 事件) w System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) w System.Windows.Forms.Control.WndProc(消息& m) w System.Windows.Forms.ButtonBase.WndProc(消息& m) w System.Windows.Forms.Button.WndProc(消息& m) w System.Windows.Forms.Control.ControlNativeWindow.OnMessage(消息& m) w System.Windows.Forms.Control.ControlNativeWindow.WndProc(消息& m) w System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
在这种情况下可能出了什么问题?
【问题讨论】:
标签: c# autoit-c#-wrapper