XP内嵌CRT版本问题.LoadLibraryEx失败



我在我的应用程序中使用了一个第三方dll,该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复制到系统中,但没有解决问题。

将所有的EXE和DLL放在一个目录中,包括CRT。复制作品,只要你把它们放在正确的地方。

我找到了解决方案,并将其张贴在这里,供有类似问题的人使用。

我把与CRT 80相关的文件夹和文件从我的工作电脑的WinSxS目录复制到目标平台,它工作了。

我复制了名为"x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.4053_x-ww_e6967989"的目录,其中包含CRT dll。从"Policies"one_answers" manifest "目录复制相关文件。

最新更新