外文翻译--准备将visualbasic60应用程序升级到visualbasicnet(编辑修改稿)内容摘要:
Basic supports the following types of singlegeneration applications: * Singledatabase application Visual Basic addins * Tools programs and games Single database application, some Visual Basic applications, which is characterized in the Microsoft Access database to store data. These applications when upgrading to Visual certain restrictions (see later in this document, data section). Visual IDE is now fully integrated into the Visual IDE, Visual language center expansion with a new model. Visual Visual addin is now the addins, you can in any language in Visual automatically processed and added functionality. For example, you can write a Visual to readd for the Visual C Windows Forms coloring, or for Visual Basic Class to add ments. To provide this functionality, Visual extension is no longer using the old model, you need to change the expansion of the application object to use the advantages of new features. Many applications are classified as a tool type of procedure. Used to manipulate files, registry settings tools like the application does not require any additional modifications often can be upgraded. After the upgrade, there are many new features available, such as the language of the exception handling to catch file system errors, and use. NET Framework class registry registry manipulation. It should be noted that, dependent on the particular Visual Basic application performance characteristics (such as arcade games) may require some modification, because Visual have different performance characteristics. Visual in the game for support, you can use Microsoft DirectX 174。 7 or a new version of the GDI. GDI + introduces many new features, including all twodimensional pixel, the image fidelity of the Alpha and graphics file formats supported by bination of extended support. Data Visual Basic provides the following types of data access types: ActiveX Data Objects (ADO) * Remote Data Objects (RDO) * Data Access Object (DAO) Visual introduces an enhanced version of ADO, called . disconnected data used, and distributed applications to improve performance in ADO. for the Windows Forms control providing read / write data binding for Web Forms data binding to provide readonly. In DAO, RDO, and ADO minor changes (in the language section of this document described), it can still be used in Visual code. However, Visual does not support DAO and RDO data binding to controls, data controls, or RDO user link. If your application contains the DAO or RDO data binding, we remend that you leave them in Visual Basic , or in the works before the upgrade to Visual , DAO and RDO data binding first upgrade to the ADO, ADO support for Windows Forms data binding. On how to do this work of information, can help to get Visual Basic . In summary, we remend that you use Visual Basic project ADO. Upgrade Upgrade code, Visual to create a new project has been upgraded, and you do most of the necessary language and object changes. The following section provides a few examples of code upgrades. Variant to object Visual Basic, Variant data type support for an earlier version, you can assign it to any basic types (other than fixedlength strings), Empty, Error, Nothing, and Null. In Visual in, Variant and Object data types into a new data type: Object. Object can be assigned to the basic data types, Empty, Nothing, Null, and object. When you upgrade to Visual project, all the variables are declared as Variant turned into Object. Similarly, when the code is inserted after the editor, Variant keyword is replaced with Object Visual Basic Forms to Windows Forms Visual has a new form package (ie, Windows Forms), which provides access to local support and a place menu editor. Your existing Visual Basic form will be upgraded to Windows Forms Interface Earlier versions of Visual Basic, public classes are often hidden from the user interface. In Visual , you can code editor in the view and edit them. When the project is upgraded, you can choose whether to automatically create interfaces for the public class statement. Upgrade report and ments After the upgrade project will add to your project update report outlining the need for the code has been upgraded all the changes. In addition, the code will also add ments to remind you to potential problems. These ments are automatically displayed in the Visual task list. Programming remendations This section provides suggestions about writing code in order to minimize the work required to upgrade to Visual changes. Use early binding Visual Basic and Visual support the late binding objects, that is, declare a variable as the Object data type, and at run time to allocate it to class. However, during the upgrade, the default property in the resolution, or in the underlying object model has changed, properties, methods, and events need to convert the case, the latebound object problems. For example, suppose you have a form called Form1, a label called Label1. In Visual Windows Form, the labeling of the Caption property is called Text. When your code is upgraded, Caption property of all instances into a Text, but because there is no latebound object type, Visual Basic can not detect the type of object, or do not know whether the need to convert all the properties. In these cases, you need to change the code after the upgrade themselves When your Visual Basic code to use Object and Variant variables, if you want to。外文翻译--准备将visualbasic60应用程序升级到visualbasicnet(编辑修改稿)
阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。
用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。