当前位置: 首页 > 工具软件 > xcash-core > 使用案例 >

vs报错 api-ms-win-core dll找不到

孙经艺
2023-12-01

在编了一个程序之后,发现报错找不到dll文件。这些文件如下:

api-ms-win-core-console-l1-1-0.dll
api-ms-win-core-datetime-l1-1-0.dll
api-ms-win-core-debug-l1-1-0.dll
api-ms-win-core-errorhandling-l1-1-0.dll
api-ms-win-core-file-l1-1-0.dll
api-ms-win-core-file-l1-2-0.dll
api-ms-win-core-file-l2-1-0.dll
api-ms-win-core-handle-l1-1-0.dll
api-ms-win-core-heap-l1-1-0.dll
api-ms-win-core-interlocked-l1-1-0.dll
api-ms-win-core-libraryloader-l1-1-0.dll
api-ms-win-core-localization-l1-2-0.dll
api-ms-win-core-memory-l1-1-0.dll
api-ms-win-core-namedpipe-l1-1-0.dll
api-ms-win-core-processenvironment-l1-1-0.dll
api-ms-win-core-processthreads-l1-1-0.dll
api-ms-win-core-processthreads-l1-1-1.dll
api-ms-win-core-profile-l1-1-0.dll
api-ms-win-core-rtlsupport-l1-1-0.dll
api-ms-win-core-string-l1-1-0.dll
api-ms-win-core-synch-l1-1-0.dll
api-ms-win-core-synch-l1-2-0.dll
api-ms-win-core-sysinfo-l1-1-0.dll
api-ms-win-core-timezone-l1-1-0.dll
api-ms-win-core-util-l1-1-0.dll

……

倒是可以在https://www.jb51.net/dll/等网站找到这些dll。但是这不是解决之道。

看了狗狗之后,有以下信息:

1. https://stackoverflow.com/questions/17023419/windows-7-64-bit-dll-problems , 认为是2015c++运行时没有安装的问题。没有解决我的问题。

2. https://stackoverflow.com/questions/45745336/vs2017-and-missing-api-ms-win-core-rtlsupport-l1-2-0-dll-on-win7-xp,认为应该调整vs的平台工具集,换到更早的版本。也没有解决我的问题。

3. 还有其他解决方式,如引用version.dll, mincore.lib等。https://social.msdn.microsoft.com/Forums/en-US/a28331ae-19a3-4a34-b3ba-1e8fd4430375/missing-apimswincore-dlls?forum=windowsgeneraldevelopmentissues

以上都没有解决问题。最终引用了winmm.lib之后解决。

 

 类似资料: