问题描述
PrivateSubForm1_Load(ByValsenderAsSystem.Object,ByValeAsSystem.EventArgs)HandlesMyBase.LoadDimQMDispatchObjAsNewQMDISPATCHLib.QMFunctionQMDispatchObj.MessageBox("haha")EndSub我想用到按键精灵Dll里面的一些东西。先用了添加引用后,运行提示错误如下:未处理System.IO.FileNotFoundExceptionMessage="检索COM类工厂中CLSID为{EF94624F-EAAE-47CA-BE5B-86FDBF0B2BBA}的组件时失败,原因是出现以下错误:8007007e。"Source="WindowsApplication2"StackTrace:在WindowsApplication2.Form1.Form1_Load(Objectsender,EventArgse)位置E:抗战VBWindowsApplication2WindowsApplication2Form1.vb:行号4在System.EventHandler.Invoke(Objectsender,EventArgse)在System.Windows.Forms.Form.OnLoad(EventArgse)在System.Windows.Forms.Form.OnCreateControl()在System.Windows.Forms.Control.CreateControl(BooleanfIgnoreVisible)在System.Windows.Forms.Control.CreateControl()在System.Windows.Forms.Control.WmShowWindow(Message&m)在System.Windows.Forms.Control.WndProc(Message&m)在System.Windows.Forms.ScrollableControl.WndProc(Message&m)在System.Windows.Forms.ContainerControl.WndProc(Message&m)在System.Windows.Forms.Form.WmShowWindow(Message&m)在System.Windows.Forms.Form.WndProc(Message&m)在System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&m)在System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&m)在System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtrhWnd,Int32msg,IntPtrwparam,IntPtrlparam)在System.Windows.Forms.SafeNativeMethods.ShowWindow(HandleRefhWnd,Int32nCmdShow)在System.Windows.Forms.Control.SetVisibleCore(Booleanvalue)在System.Windows.Forms.Form.SetVisibleCore(Booleanvalue)在System.Windows.Forms.Control.set_Visible(Booleanvalue)在System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32reason,ApplicationContextcontext)在System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32reason,ApplicationContextcontext)在System.Windows.Forms.Application.Run(ApplicationContextcontext)在Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()在Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()在Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[]commandLine)在WindowsApplication2.My.MyApplication.Main(String[]Args)位置17d14f5c-a337-4978-8281-53493378c1071.vb:行号81在System.AppDomain.nExecuteAssembly(Assemblyassembly,String[]args)在System.AppDomain.ExecuteAssembly(StringassemblyFile,EvidenceassemblySecurity,String[]args)在Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()在System.Threading.ThreadHelper.ThreadStart_Context(Objectstate)在System.Threading.ExecutionContext.Run(ExecutionContextexecutionContext,ContextCallbackcallback,Objectstate)在System.Threading.ThreadHelper.ThreadStart()这是什么意思看不懂。有谁知道怎么处理吗?谢谢了。
解决方案
解决方案二:
试一下重新注册你的COM组件
解决方案三:
估计是COM没有注册
解决方案四:
up
解决方案五:
我试过用reg32但不行。有别的办法吗?谢谢。能帮我看看有什么办法可以注册
解决方案六:
有人知道怎么弄的吗?知道的可以发到我的邮箱77072722@163.com...先谢谢了