What is VB Runtime?
What 开发者_StackOverflowis VB runtime? How is this related to VB.NET?
Datte
The VB runtime is/was a separate library containing various functions to use in you VB applications. This runtime could be installed (copied) in you Windows directory, where it could be used by every VB application that was written in the same version (VB5 runtime is not compatible with VB6 runtime).
This allowed compiled VB applications to be very small, because large chunks of shared code were in that runtime.
.NET builds on a similar principle, although it is so much larger, you can hardly compare it. But the .NET framework also contains a lot of basic functionality that can be used by all .NET applications.
But then again, so is the Windows API to regular Win32/Win64 programs. ;-)
To my knowledge, the Visual Basic Runtime is not related to Visual Basic .NET but to prior versions of Visual Basic.
This is explained here:
- Visual Basic Runtimes;
- Visual Basic (Wikipedia).
Complementing @GolezTrol's answer:
Most of the features of the VB6 runtime are available in the Visual Basic Runtime Library in the .Net Framework (Microsoft.VisualBasic namespace).
http://msdn.microsoft.com/en-us/library/c157t28f(v=VS.100).aspx
Visual Basic .NET enables you to code using VB 6 legacy syntax and keywords. For example, we can use CInt, Mid, InStr etc. The implementation of the compatibility layer is at the Microsoft.VisualBasic.dll library. [ http://www.codeproject.com/KB/vb/novbruntimeref.aspx ]
It is automatically added as a reference in all VB.Net projects, and you can add manually in C# (et al) projects.
精彩评论