ANN: MS Code Advisor for Visual Basic (6.0 to .NET) 
Author Message
 ANN: MS Code Advisor for Visual Basic (6.0 to .NET)

just found on MS download:

Code Advisor for Visual Basic 6.0:
----------------------------------------

Download Size: 4899 KB
Needs Internet Explorer 6.0  !

    http://www.*-*-*.com/

This application plugs-in to VB6 to analyze your code and suggest possible improvements
If you are programming in Visual Basic 6.0 and planning to move to Visual Basic .NET,
then the Visual Basic 6.0 Code Advisor is for you.

The Visual Basic 6.0 Code Advisor is a new add-in that can assist developers in making
a successful transition to Visual Basic .NET. Once installed, the add-in can scan your
Visual Basic 6.0 projects to insure they meet predetermined coding standards.
The Code Advisor will also suggest changes and best practices to ease your migration
to Visual Basic .NET (the latest version of Visual Basic).

Some rules:

Late Binding of Variant or Object
 Variables, parameters, and return values typed as Variant or Object
 can cause problems when upgrading.

Missing Option Explicit
 When Option Explicit is missing from the Declarations area of a module,
 your code can implicitly create new variables of type Variant without declaring them.

Soft Binding of Form or Control
 Variables declared as Form or Control can cause problems when upgrading,
 if used with properties or methods defined only for particular form and control classes.
 This 'soft binding' is not supported in Visual Basic .NET.

Soft Binding using ActiveForm and ActiveControl
 ActiveForm and ActiveControl can cause problems when upgrading, if used with properties
 or methods defined only for particular form and control classes.
 This 'soft binding' is not supported in Visual Basic .NET.

Variant-Returning String Function
 Variant-returning string functions are not supported in Visual Basic .NET.
 Use the String-returning version of the function, which has a '$' suffix.

LSet Not Supported for User-Defined Types
 The LSet function can only be used with strings in Visual Basic .NET.

OLE Control Not Upgraded
 The OLE container control has no equivalent in Visual Basic .NET Windows Forms.

No Line Control in Visual Basic .NET
 There is no Line control in Visual Basic .NET. Horizontal
 and vertical Line controls are converted to Visual Basic .NET Label controls.
 Diagonal lines are not upgraded to Visual Basic .NET.

No Shape Control in Visual Basic .NET
 Shape Controls have no equivalent in Visual Basic .Net and will not be upgraded.

UpDown Control Not Upgraded
 UpDown controls are not upgraded to Visual Basic .NET by the Upgrade Wizard.

Property/Method/Event Not Upgraded
 Certain properties, methods and events of Visual Basic 6.0 controls are not upgraded
 to Visual Basic .NET by the Upgrade Wizard.

Non Zero Lowerbound Arrays Not Supported
 Visual Basic .NET does not support the use of arrays that have a lower-bound index other than zero.

Incorrect Use Of Enumeration
 Incorrectly used enumeration constants will not up upgraded.

As Any Not Supported
 API Declare statements that include parameters typed using 'As Any' will not be upgraded.

Changing <property> Not Supported
 Changing <property> at runtime is not supported in Visual Basic .NET.

Property Page Not Upgraded
 Property Page project items are not upgraded.

Designer Not Upgraded
 Some Visual Basic Designers are not upgraded: DHTMLPage,
 DataEnvironment ChildCommand, UserConnection, DataReport

UserControl, WebClass not Upgraded
 UserControl and WebClass are not upgraded.

Missing/Corrupt Reference or Component
 A reference or component in the active project is missing or corrupt.

Non-TrueType Font Not Supported
 Non-TrueType fonts are not supported in Visual Basic .NET Windows Forms.
 The only non-TrueType font that is upgraded is MS Sans Serif.

Keyword Not Supported
 The following keywords are not supported in Visual Basic .NET:
 oSub, Option Base 1, LSet, ObjPtr, VarPtr, StrPtr, DefBool, DefByte, DefInt,
 DefLng, DefCur, DefSng, DefDbl, DefDec, DefDate, DefStr, DefObj, DefVar, ChrB, ChrW, MidB, RightB, LeftB

Return Has New Meaning
 In Visual Basic .NET, Return is used to exit a subroutine and
 to return a value in a function. GoSub...Return is not supported.

Option Base 1 is not supported
 In Visual Basic .NET, Option Base 1 is not supported.

On ... GoTo is not supported
 In Visual Basic .NET, On ... GoTo is not supported.

DAO Data Binding
 DAO data binding is deprecated in Visual Basic 6. Consider using ADO data binding instead.

RDO Data Binding
 Replace RDO data binding with ADO

COM+ Transactions Not Upgraded
 COM+ transactions can be handled in Visual Basic .NET,
 but they are not reliably upgraded by the Upgrade Wizard.

'#If' blocks are not reliably upgraded
 When a #If condition evaluates to False, the #If...#End If block is not upgraded.
 The Upgrade Wizard does not reliably evaluate whether #If conditions are True or False.

Printer Object and Printers Collection Not Upgraded
 The Printer object and Printers collection aren't upgraded to Visual Basic .NET by the Upgrade Wizard.

Forms Collection Not Upgraded
 Forms Collection can't be upgraded to Visual Basic .NET

Clipboard Not Upgraded
 The Clipboard object is not upgraded to Visual Basic .NET by the Upgrade Wizard.

Single Threaded Controls
 Controls designed for Visual Basic 6 have better performance , since they are apartment threaded.

You can also add new code-checking rules!

http://www.*-*-*.com/

http://www.*-*-*.com/ ;EN-US;vbdnmig

--
 Thomas Scheidegger - MVP .NET - 'NETMaster'
  http://www.*-*-*.com/ ://dnetmaster.net/



Tue, 12 Jul 2005 08:13:10 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. do Visual Basic 6.0 and Visual Basic .NET version beta Working Both

2. Preparing Your Visual Basic 6.0 Applications for the Upgrade to Visual Basic.NET

3. ANN: Visual Basic .NET 2003 Language Specification available for download

4. ANN: 2/25 "Upgrading Visual Basic 6.0 Applications to Visual Basic .NET" chat

5. ANN: Visual Basic Code Snippets

6. ANN: XML Support Added To Code Reports For Visual Basic

7. ANN: Visual Basic Code Snippets

8. ANN: XML Support Added To Code Reports For Visual Basic

9. ANN: XML Support Added To Code Reports For Visual Basic

10. Visual Basic .NET and ADO.NET code - Disconnected Updating Help

11. Write JScript .NET or Visual Basic .NET code directly inside IE

12. MS Project 98/2000 and Visual Basic 6.0

 

 
Powered by phpBB® Forum Software