Jump to content

Now is this possible?


Recommended Posts

I want to have an exe running server-side (on a Windows server) but I want the user to be able to control the program through their browser.

I thought perhaps running a remotedesktop session through the browser like Microsoft's Visual Studio .net 2003 online demo thing would do it but I really don't want to have to do that.

Is there an ActiveX control I can use perhaps?

Any help will be greatly appreciated.

TIA.

Link to comment
Share on other sites


It's actually very simple but requires a lot of time.

You need two parts.

One, your program (the exe) you would like the web user to be able to control.

Two, you need an ActiveX dll to control the program.

Your program can be anything.

The ActiveX DLL needs to be registered in windows so that you can instanciated it within an ASP.Net page and within your DLL you'll need to start the EXE and control it using the System.Diagnostics.Process class. A full tutorial including how to control the I/O of the process can be found here.

Though if you wanted to make your life easier, just code the WHOLE thing as an ActiveX DLL and just call the thing inside your ASP.Net page. An ActiveX DLL can do EVERYTHING a full program can. The ONLY thing it can't do is start by itself.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...