Activating a Vb app via a URL
-
I have a legacy business application written in VB 6.0. (I expect I will need to upgrade this to VB.NET at some point.). I need to activate this from a custom URL link on a web page in IE, passing parameters into it via the URL. This will bring up a form in the VB app from which I can hit a button and return to the IE window page, passing the return values again as a URL. Does anyone know how to accomplish this? I've looked at 'monikers', but I really don't understand how to use these and would appreciate some sample code from someone who has done this beforehand
-
I have a legacy business application written in VB 6.0. (I expect I will need to upgrade this to VB.NET at some point.). I need to activate this from a custom URL link on a web page in IE, passing parameters into it via the URL. This will bring up a form in the VB app from which I can hit a button and return to the IE window page, passing the return values again as a URL. Does anyone know how to accomplish this? I've looked at 'monikers', but I really don't understand how to use these and would appreciate some sample code from someone who has done this beforehand
Let me get this straight: On a client machine with a web browser, go to a URL and have the server launch a VB6 Windows Forms App (not a web app), the server runs the app but the client sees the user interface and, pass parameters to the app and pass return code back to the client to some other app waiting there. RageInTheMachine9532
-
Let me get this straight: On a client machine with a web browser, go to a URL and have the server launch a VB6 Windows Forms App (not a web app), the server runs the app but the client sees the user interface and, pass parameters to the app and pass return code back to the client to some other app waiting there. RageInTheMachine9532
Almost there: I expect that the browser, not the server, will launch the app in this case. I think it might have to be done via a URL moniker, like you get on the http://www.bitzi.com site. These will activate file sharing programs such as KaZaA and pass the download parameters into the program. My additional requirement is that the Windows Forms app can activate the browser instance (IE in this case) that created it and get it to navigate to a URL on completion of the process. Simple, eh? :-/
-
Almost there: I expect that the browser, not the server, will launch the app in this case. I think it might have to be done via a URL moniker, like you get on the http://www.bitzi.com site. These will activate file sharing programs such as KaZaA and pass the download parameters into the program. My additional requirement is that the Windows Forms app can activate the browser instance (IE in this case) that created it and get it to navigate to a URL on completion of the process. Simple, eh? :-/
Monikers are used to tell a browser what application to launch based on the contents of the html page. For example, a PDF file moniker will tell the browser to launch AcrobatReader to render the content PDF content. You can setup links to launch various programs, like Kazaa, but Kazaa won't return anything back to your browser since it's not written to do so. Also, your windows app would have a difficult time determining which browser launched it, unless there was only one browser window open. Telling the existing browser to navigate to another URL would not be a trivial task. RageInTheMachine9532