我在我的应用程序中使用了第三方 dll,它注定要在 Windows XP 嵌入式 SP1 系统上运行。
但是,它在我的开发盒上运行良好,但是当我尝试在目标平台上运行它时,它会因以下事件而失败。当我调用 LoadLibraryEx 加载第三方 DLL 时会发生此事件。
Event Type: Error
Event Source: SideBySide
Event Category: None
Event ID: 32
Date: 9/8/2011
Time: 9:42:28 AM
User: N/A
Computer: OEM-J1XMVGHGNVX
Description:
The description for Event ID ( 32 ) in Source ( SideBySide ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: Microsoft.VC80.CRT, The referenced assembly is not installed on your system.
我发现安装 Microsoft Visual C++ 2005 Redistributable Package 可以解决这个问题,但我不能这样做,因为它是一个嵌入式平台并且 MSI 不能在它上面运行。我尝试将 dll 文件 msvcm80.dll、msvcp80.dll 和 msvcr80.dll 复制到系统中,但这并没有解决问题。