LoadLibrary失败,找不到模块错误 - 可能存在依赖性问题(LoadLibrary is failing with module not found error — possible dependency problems)
我一直在尝试使用C ++(来自32位应用程序,在Windows 7 64位上)加载32位dll。 LoadLibrary返回NULL,并且GetLastError返回126“无法找到指定的模块”。
我将完整的地址传递给LoadLibrary函数。 我在Dependency Walker中打开了dll,它说GPSVC.dll是一个缺失的依赖。
从谷歌搜索我已经完成,看起来像Dependency Walker经常错误地将此GPSVC.dll显示为缺少依赖,并且没有32位版本,所以我不认为那是实际问题。
过去我没有做太多关于dll的讨论,所以希望这是一个相对简单的问题我可以借鉴。
在此先感谢您的帮助!
I have been trying to load a 32-bit dll using C++ (from a 32-bit application, on windows 7 64-bit). LoadLibrary returns NULL, and GetLastError returns 126 for "The specified module could not be found."
I am passing in the complete address to the LoadLibrary function. I opened the dll in Dependency Walker, which said GPSVC.dll was a missing dependency.
From the googling I've done, it looks like Dependency Walker often falsely shows this GPSVC.dll as a missing dependency, and there is no 32-bit version of the it, so I don't think that that's the actual problem.
I haven't done too much finagling with dlls in the past, so hopefully it's a relatively simple problem that I can learn from.
Thanks in advance for any help!
原文:https://stackoverflow.com/questions/5010150
最满意答案
fn:last()
的文档示例显示了此函数的非常相似的用法。 在谓词中使用函数的缺点是,它们是针对序列中的每个项目进行评估的。 使用fn:subsequence
和可选的fn:count
应该更高效,并绕过你的问题:let $items := (1, 2, 3) return xdmp:spawn-function(function () { xdmp:log(subsequence($items, 3, count($items))) (: you can omit 3rd param with same effect :) })
HTH!
The example for the docs of
fn:last()
is showing a very similar usage of this function. The downside for using functions in predicates is though that they are evaluated for each item in the sequence. Usingfn:subsequence
and optionallyfn:count
should both be more efficient, and by-pass your issue:let $items := (1, 2, 3) return xdmp:spawn-function(function () { xdmp:log(subsequence($items, 3, count($items))) (: you can omit 3rd param with same effect :) })
HTH!
相关问答
更多-
如果你查看了spawn类的文档,你会发现你可以使用pid属性获取生成进程的pid ,所以 spawnedBash = pexpect.spawn('bash') print(spawnedBash.pid) 应该打印您生成的进程的pid If you check the documentation of the spawn class you'll find that you can get the pid of the spawned process with the pid attribute, so ...
-
为什么发件人不会再次收到生成的流程消息?(Why is the spawned process message not received again by the sender?)[2021-09-05]
您在其中看到的值是TwoPs.create_ps/0的返回值,在这种情况下,它是第二个接收块返回的值。 如果要打印两个接收的值,则应使用IO.puts/2显式打印它们: defmodule TwoPs do def echo(pid) do receive do msg -> IO.puts("Received #{msg}") send pid, {:ok, "Hello #{msg}"} end end def create_ps ... -
WinForms控件具有名称,但这并不意味着您可以使用该名称作为C#标识符来访问它们。 你的PictureBox在EventHandler()只有一个命名的引用,即picture ,但是一旦控制离开那个引用超出范围的方法。 您需要再次找到控件,或者找到另一种引用生成的控件的方式。 所以: var allPictureBoxes = this.Controls.Find("PictureBoxLM"); foreach (var pictureBox in allPictureBoxes) { // ...
-
将ThreadFactory注入到类中,并使用它创建新线程而不是调用Thread::new 。 然后,JUnit测试可以轻松注入一个自定义的ThreadFactory并验证它是否被要求创建一个新的Thread 。 private final ThreadFactory threadFactory; private final Thread deletethirdpartyClassThread; public YourClass(ThreadFactory threadFactory) { thi ...
-
无论设置备用点如何,衍生单位总是移动到相同的目标(Spawned Units always move to same target regardless of setting alternate points)[2023-11-04]
很难准确说出你把这条线放在哪里: Enemy1ablue.transform.position = Vector3.MoveTowards( Enemy1ablue.transform.position, Pos1, speed * Time.deltaTime); 但如果它只是在SpawnEnemy1blue()那么它只会发生一次,所以敌人会向目标移动一点然后停下来。 我建议组织代码略有不同:向Vector2 target添加一个Vector2 target字段,在初始化新敌人时设置它,然后在E ... -
我在评论中提到的脚本中的固有重定向需要更多与这个问题无关的工作,所以我只是简单地发布希望KSH错误的答案。 在### Source the configuration file ###之前### Source the configuration file ###部分,我添加了以下内容: ### Expect any KSH or function errors ### expect_before -re "-ksh(.*): | (.*):(.*): " {set status 12; exit $stat ...
-
将并发子shell数限制为10的简单方法是: for ip in $(seq 1 255);do (
) & if (( $ip % 10 == 0 )); then wait; fi done wait 最后一次等待是有用的,不要让内环的最后一轮的子壳与下一轮外圈的第一轮中创建的子壳重叠。 An easy way to limit the n ... -
生成函数中的last()(last() in spawned functions)[2023-11-20]
fn:last()的文档示例显示了此函数的非常相似的用法。 在谓词中使用函数的缺点是,它们是针对序列中的每个项目进行评估的。 使用fn:subsequence和可选的fn:count应该更高效,并绕过你的问题: let $items := (1, 2, 3) return xdmp:spawn-function(function () { xdmp:log(subsequence($items, 3, count($items))) (: you can omit 3rd param with sam ... -
无法生成新的lambda实例时是否会丢失触发器?(Are triggers lost when new lambda instances cannot be spawned?)[2023-04-11]
不,当lambda达到并发执行限制时,事件不会丢失。 Amazon S3异步调用lambda, 异步事件在用于调用lambda函数之前首先排队 ,当这些事件超过安全限制时(即默认情况下每个区域执行100次并发执行),受控事件将自动重试最多六个小时,重试之间有延迟。 请参阅并发执行中的安全限制。 No, events are not lost when lambda hits the Concurrent execution limit. Amazon S3 invoke lambda asynchronou ... -
FacesContext是存储在线程中的ThreadLocal
,它执行当前的HTTP servlet请求。 您肯定无法在自己生成的其他线程中访问它,这将破坏JSF / Servlet的整个工作。 您应该将您需要的那些信息从runnable对象中的FacesContext传递给它的构造函数,可能只是具体的bean实例本身,或者其他一些对象,它们也被称为会话属性。 顺便说一句,在Java EE Web应用程序中生成非托管线程是一种气味。 确保你真正理解你在做什么。 另请参阅在JSF托管bean中启动新线 ...