visual basic
In 2008 Microsoft stopped support for VB and declared it a Legacy software. Feel free to read this article written before that time. It provides good background for the current .NET software still in use today.
在2008年,Microsoft停止了对VB的支持,并宣布它是Legacy软件。 在此之前,随时阅读本文。 它为当前仍在使用的当前.NET软件提供了良好的背景。
It's a computer programming system developed and owned by Microsoft. Visual Basic was originally created to make it easier to write programs for the Windows computer operating system. The basis of Visual Basic is an earlier programming language called BASIC that was invented by Dartmouth College professors John Kemeny and Thomas Kurtz. Visual Basic is often referred to using just the initials, VB. Visual Basic is easily the most widely used computer programming system in the history of software.
这是由Microsoft开发和拥有的计算机编程系统。 最初创建Visual Basic的目的是使编写Windows计算机操作系统的程序变得更加容易。 Visual Basic的基础是一种称为BASIC的较早的编程语言 ,该语言是由达特茅斯学院的教授John Kemeny和Thomas Kurtz发明的。 通常只使用缩写VB来引用Visual Basic。 Visual Basic是软件历史上最广泛使用的计算机编程系统。
Visual Basic只是一种编程语言吗? ( Is Visual Basic Just a Programming Language? )
It's more. Visual Basic was one of the first systems that made it practical to write programs for the Windows operating system. This was possible because VB included software tools to automatically create the detailed programming required by Windows. These software tools not only create Windows programs, but they also take full advantage of the graphical way that Windows works by letting programmers "draw" their systems with a mouse on the computer. This is why it's called "Visual" Basic.
还有更多 Visual Basic是最早使为Windows操作系统编写程序变得可行的系统之一。 这是可能的,因为VB包含了用于自动创建Windows所需的详细编程的软件工具。 这些软件工具不仅创建Windows程序,而且还通过允许程序员使用计算机上的鼠标“绘制”系统来充分利用Windows的图形方式。 这就是为什么它被称为“ Visual” Basic的原因。
Visual Basic also provides a unique and complete software architecture. "Architecture" is the way computer programs, such as Windows and VB programs, work together. One of the major reasons why Visual Basic has been so successful is that it includes everything that is necessary to write programs for Windows.
Visual Basic还提供了独特而完整的软件体系结构。 “体系结构”是计算机程序(例如Windows和VB程序)协同工作的方式。 Visual Basic如此成功的主要原因之一就是它包含了编写Windows程序所需的一切。
是否有多个版本的Visual Basic? ( Is there more than one version of Visual Basic? )
Yes. Since 1991 when it was first introduced by Microsoft, there have been nine versions of Visual Basic up to VB.NET 2005, the current version. The first six versions were all called Visual Basic. In 2002, Microsoft introduced Visual Basic .NET 1.0, a completely redesigned and rewritten version that was a key part of a much larger computer architecture. The first six versions were all "backward compatible". That means that later versions of VB could handle programs written with an earlier version. Because the .NET architecture was such a radical change, earlier versions of Visual Basic have to be rewritten before they can be used with .NET. Many programmers still prefer Visual Basic 6.0 and a few use even earlier versions.
是。 自1991年由Microsoft首次推出以来,已有9个版本的Visual Basic到当前的VB.NET 2005。 前六个版本都称为Visual Basic。 2002年,Microsoft推出了Visual Basic .NET 1.0,这是一个经过完全重新设计和重写的版本,它是大型计算机体系结构的关键部分。 前六个版本都是“向后兼容”的。 这意味着更高版本的VB可以处理使用早期版本编写的程序。 由于.NET体系结构发生了如此大的变化,因此必须先重写Visual Basic的早期版本,然后才能与.NET一起使用。 许多程序员仍然喜欢Visual Basic 6.0,还有一些甚至使用更早的版本。
Microsoft将停止支持Visual Basic 6和更早版本吗? ( Will Microsoft stop supporting Visual Basic 6 and earlier versions? )
This depends on what you mean by "support" but many programmers would say they already have. The next version of the Windows operating system, Windows Vista, will still run Visual Basic 6 programs and future versions of Windows might run them too. On the other hand, Microsoft now charges big fees for any help for VB 6 software problems and soon they won't provide it at all. Microsoft doesn't sell VB 6 anymore so it's difficult to find. It's clear that Microsoft is doing everything they can to discourage the continued use of Visual Basic 6 and encourage the adoption of Visual Basic .NET. Many programmers believe that Microsoft was wrong to abandon Visual Basic 6 because their customers have put so much investment into it over more than ten years. As a result, Microsoft has earned a lot of ill will from some VB 6 programmers and some have moved to other languages rather than move to VB.NET. This might be a mistake.
这取决于您所说的“支持”是什么意思,但是许多程序员会说他们已经拥有了。 Windows 操作系统的下一版本Windows Vista仍将运行Visual Basic 6程序,Windows的将来版本也可能会运行它们。 另一方面,Microsoft现在对解决VB 6软件问题的任何帮助收取巨额费用,并且很快他们将根本不提供任何帮助。 微软不再出售VB 6,因此很难找到。 显然,Microsoft正在竭尽所能阻止继续使用Visual Basic 6,并鼓励采用Visual Basic .NET。 许多程序员认为,Microsoft放弃Visual Basic 6是错误的,因为他们的客户在过去的十年中投入了巨资。 结果,微软从一些VB 6程序员那里赢得了很多恶意,并且有些人转向了其他语言,而不是转向了VB.NET。 这可能是一个错误。
Visual Basic .NET真的是一种改进吗? ( Is Visual Basic .NET really an improvement? )
Absolutely yes! All of .NET is truly revolutionary and gives programmers a much more capable, efficient and flexible way to write computer software. Visual Basic .NET is a key part of this revolution.
绝对没错! .NET的全部都是真正的革命性技术,它为程序员提供了一种功能更强大,高效且灵活的编写计算机软件的方式。 Visual Basic .NET是这场革命的关键部分。
At the same time, Visual Basic .NET is clearly more difficult to learn and use. The vastly improved capability does come at a fairly high cost of technical complexity. Microsoft helps to make up for this increased technical difficulty by providing even more software tools in .NET to help programmers. Most programmers agree that VB.NET is such a huge leap forward that it's worth it.
同时,Visual Basic .NET显然更难学习和使用。 大大提高的功能确实需要付出相当高的技术复杂性成本。 Microsoft通过在.NET中提供更多软件工具来帮助程序员,来弥补这一日益增加的技术难题。 大多数程序员都认为VB.NET是一个巨大的飞跃,值得这样做。
Visual Basic不仅不适合低技能的程序员和简单的系统吗? ( Isn't Visual Basic only for lower skilled programmers and simple systems? )
This was something that programmers using programming languages like C, C++, and Java used to say before Visual Basic .NET. Back then, there was some truth to the charge, although on the other side of the argument was the fact that excellent programs could be written faster and cheaper with Visual Basic than with any of those languages.
这是程序员使用诸如C,C ++和Java之类的编程语言在Visual Basic .NET之前所说的。 那时,有一些事实要承担责任,尽管争论的另一面是,事实是,使用Visual Basic比使用任何一种语言都可以更快,更便宜地编写出色的程序。
VB.NET is the equal of any programming technology anywhere. In fact, the resulting program using the .NET version of the C programming language, called C#.NET, is virtually identical with the same program written in VB.NET. The only real difference today is programmer preference.
VB.NET等同于任何地方的任何编程技术。 实际上,使用C编程语言的.NET版本(称为C#.NET)生成的程序实际上与用VB.NET编写的同一程序相同。 今天唯一真正的区别是程序员的偏爱。
Visual Basic是“面向对象的”吗? ( Is Visual Basic "object-oriented"? )
VB.NET certainly is. One of the big changes introduced by .NET was complete object-oriented architecture. Visual Basic 6 was "mostly" object-oriented but lacked a few features such as "inheritance". The subject of object-oriented software is a big topic by itself and is beyond the scope of this article.
VB.NET当然是。 .NET引入的一大变化是完整的面向对象的体系结构。 Visual Basic 6“主要”是面向对象的,但是缺少一些功能,例如“继承”。 面向对象软件的主题本身就是一个大话题,超出了本文的范围。
什么是Visual Basic“运行时”,我们仍然需要它吗? ( What is the Visual Basic "runtime" and do we still need it? )
One of the big innovations introduced by Visual Basic was a way to split a program into two parts. One part is written by the programmer and does everything that makes that program unique, such as adding two specific values. The other part does all of the processing that any program might need such as the programming to add any values. The second part is called the "runtime" in Visual Basic 6 and earlier and is part of the Visual Basic system. The runtime is actually a specific program and each version of Visual Basic has a corresponding version of the runtime. In VB 6, the runtime is called MSVBVM60. (Several other files are also normally needed for a complete VB 6 runtime environment.)
Visual Basic引入的一项重大创新是将程序分为两部分的方法。 一部分由程序员编写,并完成使该程序唯一的所有工作,例如添加两个特定值。 另一部分执行任何程序可能需要的所有处理,例如添加任何值的编程。 第二部分在Visual Basic 6及更早版本中称为“运行时”,是Visual Basic系统的一部分。 运行时实际上是一个特定的程序,Visual Basic的每个版本都有一个相应的运行时版本。 在VB 6中,运行时称为MSVBVM60 。 (完整的VB 6运行时环境通常还需要几个其他文件。)
In .NET, the same concept is still used in a very general way, but it's not called a "runtime" anymore (it's part of the .NET Framework) and it does a lot more.
在.NET中,仍然以非常通用的方式使用相同的概念,但不再将其称为“运行时”(它是.NET Framework的一部分),并且功能更多。
什么是Visual Basic .NET Framework? ( What is the Visual Basic .NET Framework? )
Like the old Visual Basic runtimes, the Microsoft .NET Framework is combined with specific .NET programs written in Visual Basic .NET or any other .NET language to provide a complete system. The Framework is much more than a runtime, however. The .NET Framework is the basis of the entire .NET software architecture. One major part is a huge library of programming code called the Framework Class Library (FCL). The .NET Framework is separate from VB.NET and can be downloaded free of charge from Microsoft. The Framework is an included part of Windows Server 2003 and Windows Vista.
像旧的Visual Basic运行时一样,Microsoft .NET Framework与用Visual Basic .NET或任何其他.NET语言编写的特定.NET程序相结合,以提供一个完整的系统。 但是,该框架不仅仅是运行时。 .NET Framework是整个.NET软件体系结构的基础。 一个主要部分是一个庞大的编程代码库,称为框架类库(FCL)。 .NET Framework与VB.NET是分开的,可以从Microsoft免费下载。 该框架是Windows Server 2003和Windows Vista的一部分。
什么是Visual Basic for Applications(VBA),它如何适用? ( What is Visual Basic for Applications (VBA) and how does it fit in? )
VBA is a version of Visual Basic 6.0 that is used as an internal programming language in many other systems such as Microsoft Office programs like Word and Excel. (Earlier versions of Visual Basic were used with earlier versions of Office.) Many other companies in addition to Microsoft have used VBA to add programming ability to their own systems. VBA makes it possible for another system, like Excel, to run a program internally and provide what is essentially a custom version of Excel for a particular purpose. For example, a program could be written in VBA that will make Excel create an accounting balance sheet using a series of accounting entries in a spreadsheet at the click of a button.
VBA是Visual Basic 6.0的一个版本,在许多其他系统(例如Word和Excel等Microsoft Office程序)中用作内部编程语言。 (Visual Basic的早期版本与Office的早期版本一起使用。)除Microsoft外,许多其他公司也使用VBA向其自己的系统中添加编程功能。 VBA使另一个系统(例如Excel)可以在内部运行程序,并提供特定用途的本质上是Excel的自定义版本。 例如,可以使用VBA编写程序,该程序将使Excel只需单击按钮,即可使用电子表格中的一系列会计条目来创建会计资产负债表。
VBA is the only version of VB 6 that is still sold and supported by Microsoft and only as an internal component of Office programs. Microsoft is developing a completely .NET capability (called VSTO, Visual Studio Tools for Office) but VBA continues to be used.
VBA是唯一仍由Microsoft销售和支持的VB 6版本,并且仅作为Office程序的内部组件。 Microsoft正在开发一种完全的.NET功能(称为VSTO,Visual Studio Tools for Office),但VBA仍在使用。
Visual Basic的价格是多少? ( How much does Visual Basic cost? )
Although Visual Basic 6 could be purchased by itself, Visual Basic .NET is only sold as part of what Microsoft calls Visual Studio .NET. Visual Studio .NET also includes the other Microsoft supported .NET languages, C#.NET, J#.NET and C++.NET. Visual Studio comes in a variety of versions with different capabilities that go well beyond just the ability to write programs. In October 2006, Microsoft's posted list prices for Visual Studio .NET ranged from $800 to $2,800 although various discounts are often available.
尽管可以单独购买Visual Basic 6,但Visual Basic .NET仅作为Microsoft称为Visual Studio .NET的一部分出售。 Visual Studio .NET还包括其他Microsoft支持的.NET语言,即C#.NET,J#.NET和C ++。NET。 Visual Studio提供了具有不同功能的各种版本,这些功能远远超出了编写程序的能力。 2006年10月,Microsoft公布的Visual Studio .NET的标价范围从$ 800到$ 2,800,尽管经常有各种折扣。
Fortunately, Microsoft also provides a completely free version of Visual Basic called Visual Basic .NET 2005 Express Edition (VBE). This version of VB.NET is separate from the other languages and is also completely compatible with the more expensive versions. This version of VB.NET is very capable and doesn't "feel" at all like free software. Although some features of the more expensive versions aren't included, most programmers won't notice anything missing. The system can be used for production quality programming and isn't "crippled" in any way like some free software. You can read more about VBE and download a copy at Microsoft's web site.
幸运的是,Microsoft还提供了完全免费的Visual Basic版本,称为Visual Basic .NET 2005 Express Edition (VBE)。 此版本的VB.NET与其他语言是分开的,并且与较昂贵的版本完全兼容。 这个版本的VB.NET非常强大,完全没有自由软件那样的感觉。 尽管不包括较昂贵版本的某些功能,但大多数程序员不会注意到任何缺失。 该系统可用于生产质量编程,并且不会像某些免费软件那样“瘫痪”。 您可以阅读有关VBE的更多信息,并在Microsoft的网站上下载副本。
visual basic