在64位应用程序中使用32位Web浏览器控件 [英] Using a 32bit webbrowser control in a 64 bit application

查看:302
本文介绍了在64位应用程序中使用32位Web浏览器控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在开发一个使用.Net Webbrowser控件的形式来呈现Flash内容的应用程序. 32位应用程序(使用x86选项构建)可以在Win7 32位OS上正常运行(可以很好地加载Flash内容).

但是,如果我运行相同应用程序的相同64位版本(使用x64选项构建),则不会加载Flash,并显示消息您需要升级Adobe Flash Player ...".

据我了解,这样做的原因是无法使用64位Flash Player.我从Adobe网站下载了64位Flash Player 11 Beta,并且64位应用程序运行良好.但我不想使用此Beta版本.

是64位应用程序(使用x64选项构建)使用64位Web浏览器控件,而32位应用程序(使用x86选项构建)使用32位Web浏览器控件吗?如果是,那么我可以在我的64位应用程序(使用x64选项构建)中显式使用32位Web浏览器控件,以便它使用32位Flash Player吗?可能吗?我不知道如何在64位应用程序中显式创建32位Web浏览器控件.有任何指针吗?
如果我错了,请纠正我.

一种选择或解决方法是在64位OS上使用32位Flash Player和32位应用程序.但是我想在64位操作系统上使用64位应用程序,但要与使用32位Flash Player的32位Web浏览器控件一起运行.

任何帮助表示赞赏.在此先谢谢您.

Hi All,

I am working on an application which uses a .Net webbrowser control in a form to render flash contents. The 32bit application (built with x86 option) works fine (loads the flash content fine) on Win7 32bit OS.

However if I run the same 64bit version of the same application (built with x64 option), the flash doesn''t load and shows as message "You need to upgrade your Adobe Flash Player...".

The reason for this (as far as I understand) is the non-availability of 64-bit flash player. I downloaded the 64-bit flash player 11 beta from Adobe website and the 64bit application worked fine. But I don''t want to use this beta version.

Is it that, 64bit webbrowser control is used by the 64bit application (built with x64 option) and 32bit webbrowser control is used by the 32bit application (built with x86 option)? If yes, then can I explicitly use 32bit webbrowser control in my 64bit application (built with x64 option) so that it uses the 32bit flash player? Is it possible? I don''t know how to explicitly create a 32bit webbrowser control within 64bit application. Any pointers for this?
Please correct me if I am wrong.

One option or workaround is to use the 32bit flash player and 32bit application on 64bit OS. But I want to use the 64bit application on 64bit OS but running with 32bit webbrowser control which uses 32bit flash player.

Any help is appreciated. Thanks in advance.

推荐答案

我认为您无法在64位应用程序中顺利运行32位WebBrowser控件.请记住,64位Windows 7包含IE的两个版本:32位IE和64位IE.
I don''t think you can make a 32-bit WebBrowser control work without problems in a 64-bit application. Remember that 64-bit Windows 7 contains two versions of IE: 32-bit IE and 64-bit IE.


在一个进程中混合指令集架构是绝对不可能的.更糟糕的是,您可以编译.NET程序集并引用具有不兼容目标的程序集,但是它将在运行时崩溃.您只能实现不同的过程并在它们之间使用IPC,而不能带有控件.

—SA
Mixing instruction-set architecture in one process is absolutely impossible. What''s worse, you could compile a .NET assembly referencing an assembly with incompatible target, but it will crash during run time. You could only implement different processes and use IPC between them — not an option with controls.

—SA


这篇关于在64位应用程序中使用32位Web浏览器控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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