[ Pobierz całość w formacie PDF ]
.Other TasksThere are a number of other modifications that you can make to your code toimprove it.The first of these should be done immediately; the rest can be donein the next phase of the upgrade.Replace compatibility functions and controls with.NET code.These are only provided for convenience during the upgrade process andshould not be used in deployed applications.Upgrade ADO code to ADO.NET.This will take advantage of the benefits of ADO.NET.Replace COM components with NET components.This will reduce the number of managed to unmanaged calls, which willimprove the performance of your application.Replace error handling code.You should replace any existing Visual Basic 6.0 error handling code withVisual Basic.NET exception handling using Try.Catch blocks to ensure amore structured approach to your error handling. 22 Module 11: Upgrading to Visual Basic.NETDemonstration: Using the Upgrade WizardTopic ObjectiveTo demonstrate how to usethe Upgrade Wizard.Lead-inNow that you have learnedhow to upgrade anapplication, let s watch theprocess as it happens.In this demonstration, you will see how to upgrade a Visual Basic 6.0Delivery Tipapplication to Visual Basic.NET.You will see the original Visual Basic 6.0The step-by-stepapplication, how to use the Upgrade Wizard, and some of the tasks that couldinstructions for thisbe completed afterwards.demonstration are in theinstructor notes for thisThis application is a simple invoice viewing system for the Cargo system.It ismodule.currently running as a Visual Basic 6.0 form-based application, interacting withclass modules providing the data access code.You will see the projects being upgraded by the Upgrade Wizard and reviewthe issues identified in the comments and Upgrade Report.Delivery TipEnsure that studentsOnce the critical issues have been solved, there are other considerations for theunderstand that this is aproject.All the data access code is ADO and could be upgraded to ADO.NETsimple application createdto take advantage of the disconnected architecture.for demonstration purposes.Be sure to discuss withthem the options that areavailable to further enhancean application after theyhave used the UpgradeWizard and addressed themajor issues. Module 11: Upgrading to Visual Basic.NET 23ReviewTopic ObjectiveTo reinforce moduleobjectives by reviewing keypoints.Deciding Whether to UpgradeLead-inOptions for UpgradingThe review questions coversome of the key conceptsRecommendationstaught in the module.Performing the Upgrade1.List two benefits of upgrading an application and how those benefits aregained.Scalability can be gained through the use of ASP.NET.Performancecan be improved through the use of ASP.NET and ADO.NET.2.What is the most commonly followed upgrade path? Why?Partial upgrade, because a complete rewrite is generally too expensiveand a complete upgrade too impractical.3.Which upgrade comments are not listed in the Task List? Why?UPGRADE_NOTE comments are not listed because they only highlightpotential problems, and the code will run without any modifications. THIS PAGE INTENTIONALLY LEFT BLANK [ Pobierz całość w formacie PDF ]

  • zanotowane.pl
  • doc.pisz.pl
  • pdf.pisz.pl
  • czarkowski.pev.pl
  •