tags:

views:

3220

answers:

7

is possible and how to use activex control or applet or flash or silverlight to run a exe game inside web browser, i mean like u embed flash game, or java game to web page.

thanks

+4  A: 

When you say "exe game", I assume you mean an executable that will run on the client machine like a normal game, except that it is downloaded when the user visits a webpage? You could find the web browser process and get its window position and position your game window over the top of that I suppose.

Seriously though, things like flash and silverlight exist for a reason: They provide a sandbox where "active" content can be executed without all the (potentially dangerous) functionality that a proper executable has.

What are you trying to do?

geofftnz
A: 

Asking your visitor to run a executable is sure to attract only the fools who will trust you and also, he will need to run MS Windows.

You might want to look at alternatives suggested above.

Amit
+1  A: 

If you want to do what I think you want then it isn't possible. :)

As geofftnz mentioned the user have to download the complete program before he can start / use the program. But otherwise you could offer a simple download-link to do so. To run the program / game with all files on the server and to show the user only the output (and perhaps offer some options for input) isn't possible, either - most programs are designed as single-user applications, so you would have to start a new instance of the program for every user visiting the site. Irrespective the ressources you server need therefor, some programs allow only one instance running coexistent.

So, embedding a foreign / 3rd party program into a website isn't possible, I fear. When using your own program you can create it with Flash or Silverlight, if essential even as a ActiveX (more possibilities but also more security risks for the users). Such applications only load the main functionality on initial load and can reload missing components or data when needed (e.g. for games: the actual part of the worldmap, new levels, items, ...). But 3rd party programs, not construed for running as a server you can control with a API, have to be rewritten. By yourself or by the original publisher (unlikely ;) ).

Anheledir
+2  A: 

Google is working on this, http://google-code-updates.blogspot.com/2008/12/native-client-technology-for-running.html a way to run x86 code natively in a browser.

Michael
You can using this Native Client sometimes to write new programs that will use full PC-Power. But as far as I understand this project it's not aimed to run "old" desktop games / applications within a browser-window
Anheledir
A: 

i want do like this http://unity3d.com/gallery/live-demos/tropical-paradise

code an embed object to play exe game on web

StoneHeart
+1  A: 

Have a look at http://www.xenocode.com/

After installing a small Browser-Plugin webusers can run prepared applications normally written for desktop-usage on the web in a sort of sandbox.

That solution should come as close as possible to your intended usage, I think.

Anheledir
A: 

osakitplayer use it

asdfsadf