加载库失败,错误代码为6 [英] Load library fails with error code 6

查看:154
本文介绍了加载库失败,错误代码为6的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用功能LoadLibrary()加载第三方32位dll.

该功能在Windows XP和Windows Server 2003上均有效,但返回错误代码6-Windows 2008 X64上每个任务的库需要单独的数据段


如何解决此错误?

I am trying to load a thirdparty 32 bit dll with function LoadLibrary().

The function is working on windows xp and windows server 2003 but it returns the error code 6 - Library required separate data segments for each task on windows 2008 X64


how to resolve this error ?

推荐答案

要取消将Richard指定的错误代码...在LoadLibrary()中指定的路径是什么?既然您正在处理64位,路径是否可能会有所不同?

64位路径中的一些问题:
0. 32位应用程序存储在程序文件(x86)"中,而不是程序文件"中.
1. 32位应用程序的注册表设置存储在Wow64密钥中(名称具有误导性)
2.在不同的路径(%SystemRoot%\ SysWoW64)中找到32位系统dll

您之前的路径有可能被破坏,这将导致您得到Richard指出的错误.
Going off what Richard specified as the error code... What path did you specify in LoadLibrary()? Is it possible that the path is different now that you''re dealing with 64bit?

Some issues with paths in 64bit:
0. 32bit applications are stored in "Program Files (x86)" instead of "Program Files"
1. Registry settings for 32bit applications are stored in Wow64 keys (name is misleading)
2. 32bit system dlls are found in a different path (%SystemRoot%\SysWoW64)

It''s possible that the path that you had before is broken, that would lead you to get the error Richard pointed out.


Bymistaken 64位安装已完成.因此我们的应用程序(32位)无法加载该库.
Bymistaken 64 bit installtion was done. Hence our application(32 bit) could not able to load the library.


这篇关于加载库失败,错误代码为6的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆