访问dll文件时出错 [英] error to access dll file

查看:75
本文介绍了访问dll文件时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Visual Studio 2015通过c编程在我的计算机上创建了64位math1.dll。
i将该dll文件复制到另一台机器上,我尝试通过vba7访问它,但显示文件未找到错误。

i have created the 64bit math1.dll on my machine using visual studio 2015 by using c programming. i copy that dll file into another machine and I try to access it through vba7 but it shows file not found error .

之后,我尝试了以下命令cmd:
c:\windows\System32>%windir%\System32\regsvr32.exe%windir%\System32\math1.dll

after that I tried the following command into cmd : c:\windows\System32>%windir%\System32\regsvr32.exe %windir%\System32\math1.dll

然后显示以下消息框错误消息框

< img src = https://i.stack.imgur.com/aToeJ.jpg alt =在此处输入图片描述>

我的机器配置:
操作系统:Windows 8.1
处理器:intel(R)core(TM)i5-4460 CPU @ 3.20 gHz

My machine configuration : Operating system :Windows 8.1 Processor :intel(R) core(TM)i5-4460 CPU @3.20 gHz

另一种机器配置
操作系统:Windows 8.1
处理器:intel(R)core(TM)i7-4600U CPU @ 2.10 GHz 2.70 GHz

Another machine configuration Operating system :Windows 8.1 Processor :intel(R) core(TM)i7-4600U CPU @2.10 GHz 2.70 GHz

我的问题是如何将那个math1.dll文件访问到Microsoft Excel Offic vba7中的e 2013 64bit吗?

My question is how can I access that math1.dll file into Microsoft excel office 2013 64bit in vba7?

推荐答案

在这种情况下,您很可能会丢失依赖的DLL文件,例如 Visual Studio 2015 C ++可再发行的x64

In this case most likely you are missing dependent DLL files, such as Visual Studio 2015 C++ Redistributable x64

如果不能解决问题,请与依赖行者一起检查是否缺少引用的DLL http://dependencywalker.com/

If that doesn't fix it check with dependency walker for missing referenced DLLs http://dependencywalker.com/

如果失败,我将使用SysInternals [ProcMon] [2] 进行确认尝试打开DLL的程序是64位的,并且还会查找与该问题相关的任何名称不合理,访问被拒绝或共享违规的错误。

If that fails I would check using SysInternals [ProcMon][2] to confirm the processing attempting to open DLL is 64-bit, and also to look for any NAME NOT FOUDN, ACCESS DENIED, or SHARING VIOLATION errors related to the problem.

这篇关于访问dll文件时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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