• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Best Practices for Upgrading Visual Basic 6.0 Projects to Visual Basic .NET
 

Best Practices for Upgrading Visual Basic 6.0 Projects to Visual Basic .NET

on

  • 16,345 views

Best Practices for Upgrading Visual Basic 6.0 Projects to Visual Basic .NET

Best Practices for Upgrading Visual Basic 6.0 Projects to Visual Basic .NET

Statistics

Views

Total Views
16,345
Views on SlideShare
15,111
Embed Views
1,234

Actions

Likes
11
Downloads
0
Comments
1

15 Embeds 1,234

http://www.codeitbetter.com 1109
http://www.slideshare.net 65
http://translate.googleusercontent.com 29
http://www.zhatak.com 8
http://zhatak.com 6
http://vsbasicleal.wordpress.com 4
http://www.abopr.com 3
http://10.150.200.102 2
http://static.slidesharecdn.com 2
http://www.lmodules.com 1
http://tutorialespr.blogspot.com 1
http://cc.bingj.com 1
http://wpc2216.amenworld.com 1
http://74.125.45.132 1
http://codeitbetter.dev 1
More...

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel

11 of 1 previous next

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
  • Best Practices for Upgrading Visual Basic 6.0 Projects to Visual Basic .NET
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • KEY MESSAGE: SLIDE BUILDS: None SLIDE SCRIPT: SLIDE TRANSISTION:

Best Practices for Upgrading Visual Basic 6.0 Projects to Visual Basic .NET Best Practices for Upgrading Visual Basic 6.0 Projects to Visual Basic .NET Presentation Transcript

  •  
  • Best Practices for Upgrading Visual Basic ® 6.0 Projects to Visual Basic .NET Name Title Microsoft Corporation
  • Agenda
    • Upgrade Overview
    • Common Upgrade Issues
    • Upgrade Summary
  • Upgrade Overview To Upgrade, or not to Upgrade?
    • Upgrading Is Not A Requirement
      • Leave Existing Code in Visual Basic 6.0
        • Continue developing in Visual Basic 6.0
        • Or interoperate between Visual Basic 6.0 and Visual Basic .NET
      • Selective Replacement
      • Upgrade to Visual Basic .NET
    • Considerations
      • Application Architecture and Technologies
      • Maintenance or New Development
  • Upgrade Overview Your First Upgrade
    • Open Project in Visual Basic .NET
    • Run the Upgrade Wizard
    • Project Doesn’t Compile or Run
    • Why?
    Upgrade VB6 Project ???
  • Upgrade Overview The Upgrade Wizard
    • Automatically Upgrades 95%
    Form Layout ActiveX Controls ADO Data Binding Code Syntax Changes COM Libraries RES files Upgrade Report
  • Upgrade Overview Finishing The Upgrade
    • Prepare Visual Basic 6.0 application
      • See “Preparing Your VB6 Application For The Upgrade To VB.NET” msdn.microsoft.com/library/techart/vb6tovbdotnet.htm
    • Fix issues
      • Micro issues
      • Macro issues
    • Add new features
    Upgraded Project Add Features Fix Issues Visual Basic .NET Upgrade Visual Basic 6.0
  • Common Upgrade Issues Micro Issues User defined type APIs Non zero arrays LSet App object Variants ActiveForm Strongly type Resolve default properties Some Automatic, Some Manual Initialization code marshalling attributes Replace ‘As Any’ with overloads Zero based arrays, or System.Array Custom method
  • Demo 1: Micro Issues
  • Common Upgrade Issues Macro Issues Transactions ActiveX documents DHTML pages Deterministic finalization Graphics On x Goto RDO/DAO data binding StrPtr, ObjPtr, VarPtr Leave in Visual Basic 6.0 Navigate to Visual Basic .NET Memory pinning Use GDI+ Dispose Use GC methods Use ADO .NET System. EnterpriseServices Select..Case
  • Common Upgrade Issues Upgrading Transactions
    • Inherit from System.ServicedComponent
    • Add attributes
      • Assembly
      • Class
      • Method
    • Create strong name
  • Demo 2: Macro Issues
  • Upgrade Summary Why Upgrade
    • Make New Enhancements in Less Time
      • Integrate with web services
      • Expose web services
      • Application specific performance counters
      • Integrate with the event log
      • Just about anything the client asks for will be easier with .NET (it certainly won’t be harder)
    • Let Your Developers Become Technology Leaders
    • Lower Deployment Costs
    • Lower Maintenance Costs
    • Beat the Competition
  • Upgrade Summary Why Upgrade
    • First Class Object-Oriented Constructs
      • Inheritance
      • Structure exception handling
      • Parameterized constructors
    • Windows ® Forms
      • Visual inheritance
      • Control anchoring, in-place menu editor
      • Connected and disconnected databinding
  • Upgrade Summary Why Upgrade
    • Web And Server Features
      • Web forms
      • Web services
      • RAD for the server
    • Better Deployment
      • DLLs Don’t Need to Register!
      • XCopy Deployment
      • Builds .msi and .cab setup programs
  • Upgrade Summary Why Upgrade
    • Power Features
      • Multi-threading
      • Debugging across all languages
    • Built From The Ground-up on .NET Framework
      • Direct access to .NET classes
      • Code access security
    • ADO .NET
    • XML
  • Upgrade Summary Lessons Learned
    • Start with one component
    • Slowest part of upgrade is debugging runtime errors
    • Testing is important
    • Upgrading is much faster than rewriting
      • Expect upgrading to take 5 – 10% of the original development time
    • Upgrade first, then Enhance
  • Upgrade Summary After The Upgrade Is Complete
    • Positioned For the Future
    • Competitive Advantage
    • Achieve Better Code Reuse
    • Attract and Retain Resources
    • Easily Meet Client Requests
    • Eliminate the Common Frustrations
      • Deployment
      • Maintenance
      • Development
  • MSDN Subscriptions THE way to get Visual Studio .NET Visual Studio .NET MSDN Subscriptions NEW
    • Professional
    • Tools to build applications and XML Web services for Windows and the Web
    MSDN Professional $1199 new $899 renewal/upgrade MSDN Enterprise $2199 new $1599 renewal/upgrade MSDN Universal $2799 new $2299 renewal/upgrade
    • Enterprise Developer
    • Enterprise lifecycle tools
    • Team development support
    • Core .NET Enterprise Servers
    • Enterprise Architect
    • Software and data modeling
    • Enterprise templates
    • Architectural guidance
  • Resources
    • “ Upgrading Microsoft Visual Basic 6.0 to Microsoft Visual Basic .NET ” – MS Press
    • MSDN Articles
      • “ Preparing Your Visual Basic 6.0 Applications For the Upgrade to Visual Basic .NET”
      • “ Upgrading Your Visual Basic 6.0 Applications to Microsoft Visual Basic .NET”
    • Visual Basic .NET Upgrade Guide
      • www.microsoft.com/vbupgrade
    • ArtinSoft Consulting Services
    • Microsoft Tech·Ed 2002
      • New Orleans, LA
      • April 9 – 13, 2002
      • msdn.microsoft.com/events/teched
  • Questions?
  • © 2001 Microsoft Corporation. All rights reserved.