vs2010 自动关闭 无法加载dll uiautomationcore.dll

本文介绍了在使用Visual Studio过程中遇到的崩溃问题及其解决方案。主要问题是由于无法加载dlluiautomationcore.dll导致的,通过安装特定的Windows更新补丁可以解决此问题。

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

打开项目后,编写代码或做其他操作时,vs会崩溃自动关闭,其 中一个错误提示是: 无法加载dll uiautomationcore.dll :找不到指定的程序..异常来自:hresult:0x800700F。今天我遇到了这个问题,打过这个补丁 WindowsServer2003-KB971513-x86-CHS.exe 就可以了。因为我用的是server 2003的系统,如果你的是xp的,请下载 WindowsXP-KB971513-x86-CHS.exe ,遇到这个问题时不防可以试试。

我的demo2.py代码为import comtypes.client UIAutomationCore = comtypes.client.GetModule("UIAutomationCore.dll") IUIAutomation = comtypes.client.CreateObject("{ff48dba4-60ef-4201-aa87-54103eef594e}", interface=UIAutomationCore.IUIAutomation) ViewWalker = IUIAutomation.RawViewWalker,然后打包后迁移到其他电脑提示C:\Users\Administrator\Desktop\demo2.dist>demo2.exe Traceback (most recent call last): File "C:\Users\ADMINI~1\Desktop\DEMO2~1.DIS\demo2.py", line 11, in <module> File "C:\Users\ADMINI~1\Desktop\DEMO2~1.DIS\comtypes\client\_generate.py", lin e 128, in GetModule File "C:\Users\ADMINI~1\Desktop\DEMO2~1.DIS\comtypes\client\_generate.py", lin e 244, in generate File "C:\Users\ADMINI~1\Desktop\DEMO2~1.DIS\comtypes\client\_generate.py", lin e 128, in GetModule File "C:\Users\ADMINI~1\Desktop\DEMO2~1.DIS\comtypes\client\_generate.py", lin e 245, in generate File "C:\Users\ADMINI~1\Desktop\DEMO2~1.DIS\comtypes\client\_generate.py", lin e 217, in _create_module File "C:\Users\ADMINI~1\Desktop\DEMO2~1.DIS\comtypes\client\_generate.py", lin e 28, in _my_import File "importlib.py", line 127, in import_module File "<frozen importlib._bootstrap>", line 1014, in _gcd_import File "<frozen importlib._bootstrap>", line 991, in _find_and_load File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 671, in _load_unlocked File "C:\Users\ADMINI~1\Desktop\DEMO2~1.DIS\comtypes\gen\_00020430_0000_0000_C 000_000000000046_0_2_0.py", line 667, in <module> File "C:\Users\ADMINI~1\Desktop\DEMO2~1.DIS\comtypes\_tlib_version_checker.py" , line 18, in _check_version ImportError: Typelib different than module
07-04
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值