Visual Basic.NET
  Home arrow Visual Basic.NET arrow Page 3 - Upgrading Visual Basic 6.0 Applications wi...
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Silverlight  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
ASP Web Hosting  
ASP.NET Web Hosting 
Windows Web Hosting
 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
VISUAL BASIC.NET

Upgrading Visual Basic 6.0 Applications with Visual Basic .NET 2003
By: Anand Narayanaswamy
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 20
    2005-12-19

    Table of Contents:
  • Upgrading Visual Basic 6.0 Applications with Visual Basic .NET 2003
  • Getting started
  • Understanding the comments
  • Guidelines for Upgrade

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Upgrading Visual Basic 6.0 Applications with Visual Basic .NET 2003 - Understanding the comments


    (Page 3 of 4 )

    You should investigate any comments listed by the upgrade wizard inside the project files. The wizard will generally add comments if that part of the application cannot be upgraded. These comments also show up in the Visual Studio .NET TaskList. There are four different kinds of comments which the upgrade wizard can add to your code. They are:

    1. UPGRADE_ISSUE

    2. UPGRADE_TODO

    3. UPGRADE_WARNING

    4. UPGRADE_NOTE

    Let us now examine each of these in detail.

    UPGRADE_ISSUE

    These comments mark any lines of code that will prevent your code from compiling properly. You should correct these errors before compiling the project. For this purpose, you may have to go through all the files and inspect their code.

    UPGRADE_TODO

    These comments indicate those portions of code that will compile but will cause a runtime error. Runtime errors are called exceptions. You should fix these errors before compiling the project.

    UPGRADE_WARNING

    These comments also indicate those portions of code that will compile but may cause a runtime error. As explained above, runtime errors are called exceptions. You should go through these warning messages (if any) and rectify them before executing the project.

    UPGRADE_NOTE

    These comments mark code that will surely compile and run, but indicate any changes between the codes that could have potential effects. I would strongly suggest you go through these notes and make any modifications to prevent any problems in the future.

    One of the points to note with regard to comments is that they will include a hyperlink to the relevant help topic that is associated with the issue.

    Visual Basic .NET will automatically list all the upgrade comments on its TaskList as shown in the figure given below.


    Figure 6

    The above figure shows the entries included on a single Windows Form. Double clicking an entry will take you directly to the corresponding code listing. You can then modify the code after going through the comments listed there.

    As explained above, you must resolve all issues to ensure that your upgraded application runs correctly. The TaskList includes UPGRADE_ISSUES, UPGRADE_TODO and UPGRADE_WARNING comments. You need to go through each one of the entries and resolve them appropriately.

    Before upgrading a Visual Basic 6.0 project to its .NET counterpart, you should first assess the usefulness of the same. It is better not to upgrade complicated projects, as you may be required to do more work to address all the issues.

    More Visual Basic.NET Articles
    More By Anand Narayanaswamy


       · Guys,I'm Anand and the author of this article. Please feel free to read this...
     

    VISUAL BASIC.NET ARTICLES

    - User-defined Functions using Visual Basic Ap...
    - Understanding Object Binding in VBA
    - Mastering the Message Box
    - Testing a Windows Forms Application
    - Using Visual Basic.NET Features to Code a Wi...
    - Correcting Code in a Windows Forms Applicati...
    - Write Readable Code and Comments for Windows...
    - How to Code and Test a Windows Forms Applica...
    - Adding Features to a Windows Forms Applicati...
    - How to Design a Windows Forms Application
    - LINQ to XML Programming Using Visual Basic.N...
    - Understanding Delegates using Visual Basic.N...
    - Create a Sudoku Puzzle Generator using VB.NET
    - Entity Creation and Messaging in a VB.NET Te...
    - Movement and Player Statistics in a VB.NET T...





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 6 Hosted by Hostway
    Stay green...Green IT