DEBUG ERROR:< name.exe>所需的运行时在vc ++项目中插入COM时发生? [英] DEBUG ERROR : Runtime needed for <name.exe> occurs while cusing COM in vc++ project?

查看:109
本文介绍了DEBUG ERROR:< name.exe>所需的运行时在vc ++项目中插入COM时发生?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经为我的工作创建了一个COM组件。我也注册了该组件。



在我的系统上,我有两个虚拟机工作站。在我的第一个工作站,工作正常。在我的第二个工作站,它显示一个错误框,其中包含消息该程序需要一个rumtime,并关闭一个不寻常的方式,请联系应用程序管理员。我以为这是因为没有在第二次工作中注册dll,然后我注册,它的工作正常。



当我试图在win2k8机器上测试相同,即使我注册COM组件成功显示上述错误窗口?



任何人都可以帮助我理解这一点?



提前感谢...

解决方案

我的猜测是,您的exe需要一些其他dll,这在一个系统上可用但不是另一个。在系统上,您会收到错误,请使用过程监视器查看您的exe运行,直到出现错误。如果任何dll不可用,你应该看到它在那里。您可以使用的另一个工具是 Dependency Walker ,它可以指示即使没有运行exe也不可用的链接dll



如果确实丢失了一个DLL,通常的原因是不能在64位系统上安装VC可再发行组件包,而SysWOW64-System32混合。


I have created a COM component for my work. I have registered the component also.

On my system I have two VM workstations. In my first workstation it works fine. In my second workstation it displays an error box containing the message this program needs a rumtime and closes an unusual way please contact applications administrator. I thought that this was because of not registering the dll in the second worksation then I registered and it works fine.

When i tried to test the same in win2k8 machine even though I register the COM component successfully it shows the above said erroe window??

Can anyone help me understand this?

Thanks in advance...

解决方案

My guess is that your exe needs some other dll, which is available on one system but not on the other. On the system you get the error, use Process Monitor to watch your exe run until the error appears. If any dll is not available to you exe, you should see it there. Another tool you can use is Dependency Walker, which can point linked dlls that are not available even without running the exe.

If a dll is indeed missing, the common reasons are not installing the VC redistributables package, and SysWOW64-System32 mixups on 64 bit systems.

这篇关于DEBUG ERROR:< name.exe>所需的运行时在vc ++项目中插入COM时发生?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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