在VISTA上从VBA访问vc ++ dll [英] accessing vc++ dll from VBA on VISTA
问题描述
为了模拟实际应用程序中的问题,我在vc ++ dll中编写了一个简单的ADD函数。然后我在MS-Access中创建了一个samll表单,一个模块应用程序。我在点击命令按钮时调用了ADD功能。然后我编译了一个mde文件并将dll和mde放在VISTA机器上。当我执行mde并单击命令按钮时,在从dll调用ADD函数时,它给出"File not found";错误。这适用于XP。你能指导我通过这个让我知道出了什么问题吗?
让我了解你查询,你正在使用VC ++开发的dll,在使用vc ++ dll开发ms-access应用程序的机器上 - 它工作正常。
但是问题出现在另一台机器上。
如果是这种情况,那么在其他机器上使用ms-access应用程序之前尝试注册你的dll,使用下面的命令从start-> run注册你的dll。
regsvr32"dl文件的路径"
有关regsvr32的更多参考,请查看此链接 http://en.wikipedia.org/wiki/Regsvr32
祝愿。谢谢。 :)
To simulate an issue in the actual application, I have written a simple ADD function in a vc++ dll. I then created a samll one form, one module application in MS-Access. I called the ADD function on the click on a command button. I then compiled an mde file and put both dll and mde on VISTA machine. When I execute the mde and click on command button, at the time of call to ADD function from dll, it gives "File not found" error. This works fine with XP.
Can you please guide me through this and let me know what is going wrong?
Let me understand you query,
you are using dll which is developed in VC++, on the machine where you had develop the ms-access application using vc++ dll -- it is working fine.
But problem is on another machine.
if this is a case then try to register your dll before using ms-access application on other machine,
use below comman from start->run to register you dll .
regsvr32 "Path of dl file"
for more reference of regsvr32 check this link http://en.wikipedia.org/wiki/Regsvr32
Best wishes. Thanks. :)
这篇关于在VISTA上从VBA访问vc ++ dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!