Calling a VB .NET app from an existing VB 6 application

Calling a VB .NET app from an existing VB 6 application

I have an existing VB6 Web application. At this point in time, we do not wish to convert it to .NET. However, we are in the process of creating some electronic forms and an application to manage them that we would like to write in VB.NET and ASP.NET, and then call from our existing VB6 application. I am assuming this is possible. Can you let me know if it is? Thanks.

    Requires Free Membership to View

    When you register, you'll begin receiving targeted emails from my team of award-winning writers. Our goal is to provide a unique online resource for developers, architects and development managers tasked with building and maintaining enterprise applications using Visual Basic, C# and the Microsoft .NET platform.

    Hannah Smalltree, Editorial Director

    By submitting your registration information to SearchWinDevelopment.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchWinDevelopment.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

Yu can surely do that. There are two different things to consider here: starting the application from VB6 and pulling information from it with VB6.

Starting the application is as easy as using a WebBrowser control and point it to the default page on your Web app. Pulling information from it may require that the ASP.NET app delivers information in a VB6-friendly way, such as a text stream.

So, the VB6 app can simply do a request (HTTP GET) for a Web page (say GetFilledForms.aspx) and get the results as a string. The ASP.NET page can perform Response.Write calls to generate the output.

This was first published in February 2004