本文介绍了访问dll文件时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我使用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.dllafter that I tried the following command into cmd :c:\windows\System32>%windir%\System32\regsvr32.exe %windir%\System32\math1.dll然后显示以下消息框错误消息框我的机器配置:操作系统:Windows 8.1 处理器:intel(R)core(TM)i5-4460 CPU @ 3.20 gHzMy machine configuration :Operating system :Windows 8.1Processor :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 GHzAnother machine configurationOperating system :Windows 8.1Processor :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 ++可再发行的x64In 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文件时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-18 20:49