Win10 VS2019 VC++对COM组件的调用返回了错误HRESULT E_FAIL亲测有效

2020-06-2313:44:18 评论 2,715 views

1、以管理员身份运行 Developer Command Prompt for VS 2019

file

2、找到自己VS2019的安装目录:

因为我的VS2019安装到了J盘,所以需要先切换到J盘:
file

具体路径为:

J:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\PublicAssemblies>

3、执行命令:

gacutil -i Microsoft.VisualStudio.Shell.Interop.12.0.dll

file

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: