can't use QT_VS_Addin 1.1.9 with Visual Studio 2010

本文记录了在 Visual Studio 2010 中使用 QT VS Addin 1.1.9 版本时遇到的问题及解决方法。主要问题是无法注册所有命令,错误提示为找不到 stdole.dll 文件。文中提供了通过 gacutil 命令来注册缺失 DLL 的详细步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

一个小插曲,安装插件的时候遇到问题,先记录下来。

can't use QT_VS_Addin 1.1.9 with Visual Studio 2010

I'm trying to run QT_VS_Addin 1.1.9(is latest version), with Visual Studio 2010, When i run VS the following error occures.

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()

解决方法在下面

As a workaround you can call
"C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\gacutil.exe" -i "C:\Program Files (x86)\Common Files\microsoft shared\MSEnv\PublicAssemblies\stdole.dll"

After that the AddIn should work as expected.

The installer should already do this for you. Maybe it cannot run gacutil on your machine?


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值