调试错误:运行时需要< name.exe>而在VC ++项目cusing COM发生? [英] DEBUG ERROR : Runtime needed for <name.exe> occurs while cusing COM in vc++ project?

查看:129
本文介绍了调试错误:运行时需要< name.exe>而在VC ++项目cusing COM发生?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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



在我的系统我有两个虚拟机工作站。在我的第一个工作站,它工作正常。在我的第二个工作站将显示包含信息的错误框此程序需要rumtime并关闭一个不寻常的方式,请联系管理员申请。我认为这是因为当时我注册的,它工作正常不注册DLL在第二worksation的。



当我试图测试在win2k8机相同,即使我注册COM组件成功就说明了上面说的erroe窗口??



谁能帮助我理解?



<提前p>谢谢...


解决方案

我的猜测是,你的exe文件需要一些其它的DLL,它可在一个系统上但不能在其他。在你得到错误的系统,请使用进程监视器看你的EXE运行,直至出现错误。如果任何DLL没有提供给你的exe,你应该有看到它。您可以使用另一个工具是的Dependency Walker ,可点链接的DLL不可用的,即使没有运行exe文件。



如果一个DLL确实丢失了,常见的原因没有安装VC可再发行包,在64位系统Syswow64资料-System32下mixups。


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.

这篇关于调试错误:运行时需要&LT; name.exe&GT;而在VC ++项目cusing COM发生?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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