本文介绍了来自hresult:0x80040154的类未注册异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我在视觉stdio2005中开发了一个项目,在这个项目中,我使用htmlprinter来打印文档.使用诸如Interop.SHDocVw,Interop.DHTMLEDLib,HtmlPrinter之类的dll,它在Windows XP中运行良好.如果我将在Windows 7中运行,则会出现错误,例如类未从hresult:0x80040154 注册异常.

我更改了也无法正常工作的目标计算机x86

请帮帮我..

如何解决这个问题

repley asap ..


谢谢与问候

T.Bency Arulmozhi Nisida

Hai

I developed project in visual stdio2005, in this project i used htmlprinter for print a document. using some dlls like Interop.SHDocVw,Interop.DHTMLEDLib, HtmlPrinter, its run well in windows XP. If i will run in windows 7 that make error like class not registered exception from hresult:0x80040154.

I changed target machine x86 that also didnt work

Please help me..

How to solve this problem

repley asap..


Thanks and Regards

T.Bency Arulmozhi Nisida

推荐答案



I tried uncheck the two checkbox as below:
 1.    Debug menu ->  Exceptions… -> Common Language Runtime Exceptions: User-unhandled item
2.    Debug menu ->  Exceptions… -> Managed Debugging Assistants:  Thrown item


But these doesn't work....any more advise.

我还发布了与以下相同的费用返还.

http://social.msdn.microsoft.com /Forums/zh-CN/vbinterop/thread/9d174de2-feaf-4826-992b-d453d89965ca/ [ ^ ]

I also post the same feeback as below.

http://social.msdn.microsoft.com/Forums/en-US/vbinterop/thread/9d174de2-feaf-4826-992b-d453d89965ca/[^]


这篇关于来自hresult:0x80040154的类未注册异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-14 12:58