Results 1 to 5 of 5

Thread: Run VB App from a web page

  1. #1

    Thread Starter
    Fanatic Member coox's Avatar
    Join Date
    Oct 1999
    Posts
    550
    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?

  2. #2
    Fanatic Member
    Join Date
    Jan 2000
    Location
    Mobile, AL, USA
    Posts
    600

    Tis possible...

    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]

  3. #3
    Hyperactive Member compuGEEK's Avatar
    Join Date
    May 1999
    Location
    Mpls,MN,USA
    Posts
    281

    WebClass

    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.

  4. #4

    Thread Starter
    Fanatic Member coox's Avatar
    Join Date
    Oct 1999
    Posts
    550
    Yeah, but don't I have to have IIS installed on my machine to use that?

  5. #5
    Fanatic Member
    Join Date
    Jan 2000
    Location
    Mobile, AL, USA
    Posts
    600
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width