为什么我不能在另一台PC中使用组件? [英] Why i cant use component in another pc?

查看:129
本文介绍了为什么我不能在另一台PC中使用组件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好.
我在程序中使用了一个组件. (我将组件拖动到工具箱中)
发布后,我安装了它.并小心运行.

但是现在我在运行应用程序后在安装后将安装移动到另一台PC上,并显示以下错误:
您的应用程序中发生了未处理的异常.如果您..."

所以我知道组件必须注册.所以我运行"cmd"并键入以下命令:"regsvr32 c:\ clr.ocx"
它说成功注册.

之后,我再次运行我的程序螺母,它又说了最后一个错误.为什么?
我该怎么办才能解决此问题?

感谢您的帮助.

hi everyone.
I use a component in my program. (i drag the component in toolbox)
after publishing i installed it. and it run carefully.

but now i move install in another pc after installing when i run my app it say below error:
"unhandled exception has ocurred in your application. If you..."

So i understand component must register. so i run "cmd" and type this command: "regsvr32 c:\clr.ocx"
it say sucsessfull register.

After that i run again my program nut it said last error again. Why?
what can i do to resolve this problem?

thanks for your help

推荐答案

也许其他地方有问题...
Maybe something else is wrong...


您可能想实现某种日志记录机制进入您的应用程序.这就是我们这样做的原因.它有助于指出代码中错误的真正根源,而不是错误的症状.
You probably want to implement some sort of logging mechanism into your application. This is exactly why we do that. It helps to point at the real culprit of bugs in code as opposed to symptoms of bugs.


这篇关于为什么我不能在另一台PC中使用组件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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