DEBUG ERROR : Runtime needed for <name.exe> occurs while cusing COM in vc++ project?

不打扰是莪最后的温柔 提交于 2019-12-31 07:12:12

问题


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...


回答1:


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.



来源:https://stackoverflow.com/questions/981447/debug-error-runtime-needed-for-name-exe-occurs-while-cusing-com-in-vc-proj

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!