跟大家分享一个遇到的问题,我这几天要开发一个QT程序,决定在 VS2010上开发QT程序。
在安装了 QT5.0.2 + qt-vs-addin-1.2.1 后,打开VS2010 ,遇到QT插件加载错误(couldn't register all Qt4VSAddin commands;),
如下:
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Couldn't register all Qt4VSAddin commands. : Could not load file or assembly 'stdole, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
at Microsoft.VisualStudio.PlatformUI.Automation.CommandBarButton.CreateInstance(CommandBar parent, MsoControlType controlType, ControlCustomizer customizer)
at Microsoft.VisualStudio.PlatformUI.CommandBars.ButtonDataSource.CreateControl(CommandBar parent, ControlCustomizer customizer)
at Microsoft.VisualStudio.PlatformUI.Automation.DynamicCommandBarControls.get_Controls()
at Microsoft.VisualStudio.PlatformUI.Automation.CommandBarControls.get_Count()
at Microsoft.VisualStudio.PlatformUI.Automation.CommandBarControls.Marshaler.b_e()
at Microsoft.VisualStudio.Shell.ThreadHelper.Invoke[TResult](Func`1 method)
at Microsoft.VisualStudio.PlatformUI.Automation.CommandBarControls._Marshaler.get_Count()
at Qt4VSAddin.AddinInit.registerCommands()
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
之后出现
再打开VS就能正常加载QT插件了。。。
联系客服