Results 1 to 14 of 14

Thread: Start VB program from an HTML link

  1. #1

    Thread Starter
    Junior Member
    Join Date
    May 2001
    Location
    Clinton, NY/Munich, Germany
    Posts
    17

    Talking Start VB program from an HTML link

    Hi everybody,
    I am a novice as far as VB goes, so I would really appreciate your help. I just wrote a series of small programs in VB, and I would like to put them on the Internet. They should be activated with a click on a link or a button within a web page, and they should run on the server and display results in another web page.

    I read somewhere that VBScript is good for these sorts of things. In this case I had to rule out VBS since I use some stuff that VBS does not support.

    Help me out here if you can.
    Thanks in Advance,
    Sam

  2. #2
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    Try converting them to ActiveX. Then you can view them in a webpage with (I think?) an EMBED or something else. Use:

    <A HREF="pagethatholdsactivexobject.htm" TARGET="Frame_That_Does_Not_Exist">My Program</A>
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  3. #3

    Thread Starter
    Junior Member
    Join Date
    May 2001
    Location
    Clinton, NY/Munich, Germany
    Posts
    17
    Sastraxi,
    thanks for the suggestion. I don't understand what you mean exactly?

    I have a program in visual basic. I thought about creating an executable out of it and storing it on the server. When a user visits the web page that lays on that server, he should be able to click on a link or a button and activate my executable. When the executable is activated it should do a bunch of tasks on the server and generate a dynamic web page and display it in the visitor's web browser.

    Now, the program I already have does all the tasks and displays them in a browser, I just don't know how to activate this program from a link, make it run on the server, and display the results to the visitor. If ActiveX is the way to go, can you please elaborate a bit about how to convert them to ActiveX and about EMBED?

  4. #4
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    Actually I'm not sure meself...
    But when you do you could also access them as:

    Set MyObj = Server.CreateObject("MyLib.MyProg")

    in an ASP page of course
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  5. #5
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    Okay then all you need to do then is do <A HREF="myprog.exe>CLiCK mE</A>, this will d/l it to the user and then they can run it themselves
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  6. #6

    Thread Starter
    Junior Member
    Join Date
    May 2001
    Location
    Clinton, NY/Munich, Germany
    Posts
    17
    Sastraxi,
    But I don't want a visitor to have to download the executable and run it himself/herself . The executable uses applications that a visitor probably doesn't have on his computer, so it must run on the server.

    It is very important that the executable runs on the server. And it is triggered by a button or a link click in a web page. Any ideas?

  7. #7
    kayoca
    Guest
    The only way i know off is dont make an exe but create an ActiveX.
    And use this in you asp page
    Code:
    Set MyObj = Server.CreateObject("MyLib.MyProg")
    So when the user clicks on your link. Redirect him to your asp page.
    And your AxtiveX can be activated. This is a way i know off how to run programs on your server.
    But you have to register your ActiveX on your server.

  8. #8
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    IIS does not have permissions to run a program outside of it's own address space. This means that only in-process dll programs can be executed on the server from IIS. No .exe's.
    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

  9. #9
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    on the server.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  10. #10

    Thread Starter
    Junior Member
    Join Date
    May 2001
    Location
    Clinton, NY/Munich, Germany
    Posts
    17
    Thanks Cander,
    How do I register an Active X on a Server? Is there anything else I need to worry about; perhaps some sort of include statements in the .asp page?

  11. #11

    Thread Starter
    Junior Member
    Join Date
    May 2001
    Location
    Clinton, NY/Munich, Germany
    Posts
    17
    I just read somewhere that this Active X approach will only work with IE. Is that true?

  12. #12
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    Yes. ActiveX is a slightly older technology made by the iron fists of Microsoft to combat Java applets.
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  13. #13

    Thread Starter
    Junior Member
    Join Date
    May 2001
    Location
    Clinton, NY/Munich, Germany
    Posts
    17
    Is there any way to do this in a Netscape compatible way?

  14. #14
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    Is there any way to do this in a Netscape compatible way?
    Yeah, do it all on the server. Convert your VB programs into either
    1. COM DLLs
    2. ASP pages written in VBScript.

    As long as you don't need to use client-side VBscript or client-side ActiveX Controls, you'll be fine.
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

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