Including a vb6 exe file in VB2005 application

Is it possible to include exe files in a solution, and execute them with commands

Some problems are easier with vb6, so i just make an exe file in that, but is it possible to compile them with a VB2005 program so that i dont need to have ekstra exe files in the program folder that needs to be called.



Answer this question

Including a vb6 exe file in VB2005 application

  • glasgow1

    You can deploy an file with you application (VB6 is possible). The problem that you also have to consider is that VB6 applications require there prerequisites to be installed on the machine such as VBRunx00.dll for whatever version of VB Class your running and a whole host of other files. Without these you VB6 application wouldnt run so you need to look at deploying all the requirements of your VB6 application along with you .NET one.

    This is probably a bigger hassle than simply writing the applications in .NET (I cant think of many situations where VB6 is that much easier than VB.NET) If you write them in VB.NET then its easier to deploy the application.

    Is it possible to compile a VB6 application with VB.NET - No, you would have to upgrade the VB6 application to .NET to use the VB6 compiler.

    You can embed an VB6 EXE or any other file as part of the .EXE assembly (It would be just embedding binary content) however you still have the issue with having to embed all the other requirements probably - which means you still having a much more complicated deployment solution than you really need - and if you stick with one version of VB.NET rather than trying to mix VB6 and VB.Net you'll probably be in better shape for deploying your applications.


  • BortNE24

    damn...

    Then i just have to include the exe file and call it from the application with the shell command

    Thanks for the reply


  • Sondre - MSFT Regional Director

    Even a simple console application will have dependencies. VB6 is not as simple as deploying just an EXE.

    To run the EXE you would actually generate a file from the embedded resource. You cant directly run the embedded EXE.


  • dbro101

    not sure what you mean. you can't create VB6 applications in VB.NET. you can however start other applications via Process.Start() command in VB.NET to launch your VB6 application if this is what you mean.

    you could also embed your VB6 app as a resource file in your VB.NET application then extract that and run it should you need to



  • Bandile

    Well one of the few things that are easier is sending raw data to a printer, (which i need to open a cash drawer). It can be done with a few lines of code in vb6. My exe file is a small consol application, so there shouldn't be any libraries included i would think.

    But if insert the exe file in the vb2005 application, how can i run it


  • Including a vb6 exe file in VB2005 application