If I were to stick my vb app on a web server, could I make it run tasks from a web page front end? And if so, how?
Printable View
If I were to stick my vb app on a web server, could I make it run tasks from a web page front end? And if so, how?
Hi coox.
This can be done and I've created such an application, but I haven't run it from a web server yet, just from my PC.
Here's how to do it:[LIST=1][*]Create a New ActiveX Exe Project[*]Add whatever forms and modules you need to this project.[*]You must have a Sub Main Procedure in a Module as the Startup Object. What I did was show my Form in this procedure.[*]Once you're finished coding, make the project into an EXE. In the project properties, the project type should be "ActiveX EXE".[*]Run "regedit" to find the Class ID of the object created in the step above. Do a search for the name of the EXE.[*]Include the appropriate Object Tag in your HTML file in a format similar to the following:
<OBJECT
CLASSID="clsid:25BDF09D-EC8B-11CF-BD97-00AA00575603"
CODEBASE="/Controls/MyContrl.cab#version=1,0,0,0"
ID=MyContrl>
</OBJECT>[/LIST=1]That should do it. Of course you would need to modify the CLASSID and CODEBASE attributes above to match your project's ClassID and Path.
For more info, check out "How Internet Component Download Works" in MSDN and this website Tegosoft, which has some examples of what you are trying to do.
All the best.
[Edited by OneSource on 03-31-2000 at 05:24 PM]
The only *bad* thing about an ActiveX control is that the control has to be downloaded on the client machine.
A really cool way to run your app via a web browser is to use the WebClass designer. The great thing about it is that it's straight HTML coming to the browser and nothing has to be downloaded.
Yeah, but don't I have to have IIS installed on my machine to use that?
Coox, yes you do.
But I think the web server that you run your App on will most likely have IIS. I believe that you will have to use the web server for project developement if you want to use WebClasses. I tried to create a WebClass on my PC, and VB said no, no, no! :(
All the best.