Why the Visual Basic Language Has Changed

function OpenWin(url, w, h) { if(!w) w = 400; if(!h) h = 300; window.open(url, "_new", "width=" + w + ",height=" + h + ",menubar=no,toobar=no,scrollbars=yes", true); } function Print() { window.focus(); if(window.print) { window.print(); window.setTimeout('window.close();',5000); } }
Team-Fly    

Special Edition Using Microsoft® Visual Basic® .NET
By Brian Siler, Jeff Spotts
Table of Contents
Appendix B.  Tips on Conversion from VB6


Before Visual Basic .NET appeared, earlier versions of Visual Basic created applications and components targeted for Windows client applications. Of course, Visual Basic .NET is designed to create applications and components for the Windows platform as well. However, Visual Basic .NET now includes a framework for creating Web services and Web applications, greatly increasing the target platforms that you can work with. Because of this new increase in target platforms for which applications and services can be created, Visual Basic .NET supports the new Common Language Specification (CLS). The CLS identifies a set of features of a programming language that is supported by a wide array of development tools. Components that adhere to the CLS standard are guaranteed to work with other CLS-compliant components. Underlying the CLS is the new common language runtime, which is the foundation of the .NET framework.

What does all this have to do with the Visual Basic language? Simply put, because Visual Basic .NET applications are CLS-compliant, they must generate code for the common language runtime, which in turn means that some fundamental changes to the Visual Basic language were in order as Visual Basic .NET was in development. In addition, because a major overhaul of the Visual Basic language was required for the creation of Visual Basic .NET, Microsoft took the opportunity to "clean up" some inconsistencies and outdated features that had developed in the Visual Basic language over the course of its evolution through six previous versions. Therefore, you will note a number of changes that have been made to provide interoperability with other programming languages, all for the good of the CLS.


    Team-Fly    
    Top
     



    Special Edition Using Visual Basic. NET
    Special Edition Using Visual Basic.NET
    ISBN: 078972572X
    EAN: 2147483647
    Year: 2001
    Pages: 198

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net