问题描述
情况就是这样,
我正在使用,
我想在桌面应用程序
中使用PreviewHandlerHost控件,我成功地做到了这一点,并在XP 32(64位)和Vista 32(64位)上对其进行了测试
So this is the case,I am using the http://www.codeplex.com/C4FDevKit,I want to use the PreviewHandlerHost control in my desktop applicationI successfully been able to do it and test it on XP 32, 64 bits and Vista 32, 64 bits
该问题仅出现在XP x64上,这是异常消息
the issue only appeared on XP x64, This is the exception message
请提供任何帮助。
而我尝试预览的文件是Microsoft Word文档。
Please any help is appreciated.And the file I was trying to preview was a Microsoft Word Document.
推荐答案
进入项目属性 对于您的桌面应用程序,单击编译标签,然后单击高级编译选项...。将目标CPU更改为x86,单击确定,保存,重新编译,然后重试。
Go into the Project Properties for your desktop application, click the "Compile" tab and click "Advanced Compile Options...". Change "Target CPU" to x86, click OK, save, recompile and try again.
我自己刚刚打过这个-请参阅信息。
I've just hit this one myself - see COMException "Class not registered" on 64-bit Windows for more info.
这篇关于在x64上托管PreviewHandlers可提供REGDB_E_CLASSNOTREG的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!