Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

compiling VB6 code in .NET environment

Is one able to compile VB 6 code in Visual Studio.NET ? In other words, is it backwards compatible with older VB code?

Since I know there is a difference between managed code (.NET) and unmanaged code, I am wondering if Visual Studio.NET is able to compile unmanaged code as well?

Kind regards, Kris

like image 326
Kris Van den Bergh Avatar asked Oct 15 '10 12:10

Kris Van den Bergh


People also ask

Is VB.NET compatible with VB6?

It is true that VB.NET is an evolved version of Visual Basic 6, but it's not compatible with it. If you write your code in Visual Basic 6, you cannot compile it under VB.NET.

Does .NET support VB?

Both Visual Basic and C# customers can continue to use . NET Framework and need to port to . NET Core only if you want features like those listed above. If your application uses technologies that aren't supported on .

Can I open VB6 in Visual Studio?

Right click on the file and select "Open With" and select your visual studio program. It may need to be converted and if so, it will prompt you to convert the project. Thanks!


2 Answers

While you cannot compile vb6 in the .net Visual Studios, you may use interop libraries to allow vb.6 to utilize managed code http://msdn.microsoft.com/en-us/library/kew41ycz%28VS.71%29.aspx

like image 69
Harrison Avatar answered Oct 05 '22 03:10

Harrison


No, you can't compile VB6 code in any VS.NET version.

like image 39
Jason Evans Avatar answered Oct 05 '22 03:10

Jason Evans