White Papers

The new Science of Information Security

Planning for a Data Migration Project

Is Offshoring for you?

 

Useful Links

Glossary of Internet and Web Jargon

Guide to Hosting Industry Jargon

Search Engines: A comparison

How to use Subject-Focused Directories

Web graphics resources
Template Samples

The Village Quarterly Magazine of the Arts

 
 
Upgrading VB 6 to .NET
Messages produced by the Upgrade Tool

On this page we are listing the messages we have encountered when running the Upgrade Tool. We have added an explanation of the cause of the message. Upgrade Tool messages typically contain a link to Microsoft where you can read more on the cause of the problem. The Upgrade Tool also adds a file to the converted project named "_UpgradeReport.htm".

'UPGRADE_ISSUE: Data property ClassObject.Method was not upgraded. Click for more: 'ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?keyword="076C26E5-B7A9-4E77-B69C-B4448DF39E58"'
This occurs when "ClassObject" is defined externally from the current project.
'UPGRADE_ISSUE: Declaring a parameter 'As Any' is not supported. Click for more: 'ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?keyword="FAE78A8D-8978-4FD4-8208-5B7324A8F795"'
Parameters must be typed.

Public Sub Access_Resources(ByRef ParentFrm As System.Windows.Forms.Form, ByRef programname As String)
'UPGRADE_ISSUE: Control Program_Table could not be resolved because it was within the generic namespace Form. Click for more: 'ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?keyword="084D22AD-ECB1-400F-B4C7-418ECEC5E36E"'
Program_Table = ParentFrm.Program_Table

"ParentFrm" is treated as a generic form. The Upgrade Tool can only resolve default properties.

'UPGRADE_WARNING: Couldn't resolve default property of object objVar.strProperty. Click for more: ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"


This message is produced because " objVar" was defined as a variant. So, the upgrade tool can't find "strProperty". Only default variant properties, such as "GetType" and "ToString", are resolvable.
'UPGRADE_WARNING: Application will terminate when Sub Main() finishes. Click for more: 'ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?keyword="E08DDC71-66BA-424F-A612-80AF11498FF8"'
In VB 6, terminating "main" may not end the program.
'UPGRADE_WARNING: Use of Null/IsNull() detected. Click for more: 'ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?keyword="2EED02CB-5C0E-4DC1-AE94-4FAA3A30F51A"'
In .NET "NULL" is replaced with "System.dbnull.value"
'UPGRADE_WARNING: Form event ConvertFrm.Activate has a new behavior. Click for more: 'ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?keyword="6BA9B8D2-2A32-4B6E-8D36-44949974A5B4"'
The behavior of the event has changed.
'UPGRADE_WARNING: Event CheckBox1.CheckStateChanged may fire when form is initialized. Click for more: 'ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?keyword="88B12AE1-6DE0-48A0-86F1-60C0686C026A"'
In VB 6 events aren't fired until the form is loaded.

'UPGRADE_NOTE: Class_Terminate was upgraded to Class_Terminate_Renamed. Click for more: ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?keyword="A9E4979A-37FA-4718-9994-97DD76ED70A7"


If the project is common to multiple projects and the method is public, references in other projects wil have to be manually renamed.

'UPGRADE_NOTE: Object objVar may not be destroyed until it is garbage collected. Click for more: 'ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?keyword="6E35BFF6-CD74-4B09-9689-3E1A43DF8969"'

Setting "objVar" to nothing may not destroy it immediately.
'UPGRADE_NOTE: Replace was upgraded to Replace_Renamed. Click for more: 'ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?keyword="A9E4979A-37FA-4718-9994-97DD76ED70A7"'
The name "Replace" is reserved so, it was given a new name.
 
Online Networking and Assoc. Inc.   dennis@onlinenetworking.org