Re: vb6-vb2005 conversion



Thanks Armin,
very useful i wasnt aware of code advisor.
only 6093 errors and warnings? :-)

cheers

guy

"Armin Zingler" wrote:

> "guy" <guy@xxxxxxxxxxxxxxxxxxxxxxxxx> schrieb
> > Has anyone any experience of the conversion wizard for VB6 to
> > VB2005? if so how good is it?
>
> It's quite ok but has some (unconfirmed) bugs in some special situations:
> http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx?feedbackid=1a7e3311-3956-48a0-ba85-349d5b0a2e58
>
> > also how does it handle database related conversions i.e is ADO
> > converted to ADO.NET etc.
>
> No, it doesn't rewrite your code. It still uses ADO using COM-Interop
> (usually not recommended)
>
> The amount you will have to rewrite also depends on the quality of your VB6
> code. Even though you might get it working in VB 2005 just like it did in
> VB6, you will probably consider redesigning the whole project. To which
> extent depends on you (or your boss ;-).
>
>
> To give an overview, I extracted the main messages from the overview of an
> upgrade report the wizard created:
>
>
> Compile Errors
> --------------
> The ReDim function can no longer change the type of the array
> All parameters in a Declare statement must be fully qualified
> Some functions are no longer supported
> The mouse cursor can not be set to a custom pointer
> Some PictureBox controls were upgraded to panels
> Some constants were not upgraded
> The NewIndex property of a control could not be upgraded
> Some objects and collections were not upgraded
> The GoSub...Return and On...GoSub statements are no longer supported
> The Load statement and the Calendar property are not longer supported
> Some properties and methods could not be upgraded
> Some Events are no longer supported
> Some objects could not be resolved
>
>
> Design Errors
> -------------
> The background picture of a panel will be tiled
> The ItemData property of a ListBox or ComboBox set at design time could not
> be upgraded
> The behavior of the Interval property of the Timer control has changed
> A control was not upgraded
> The ScaleMode property is no longer supported
> Some properties and methods could not be upgraded
> The only font types supported are OpenType and TrueType
>
>
> Warnings
> --------
> UserControls in the project will need to built before they can be used
> When Sub Main finishes executing the application will terminate
> The Treeview Nodes Add method behavior has changed
> Some parameters to the MsgBox, InputBox and AppActivate functions are no
> longer supported
> Some structures may require marshalling if passed in an Win32 API call
> Some properties, methods and events were upgraded to a different property,
> method or event with a new behavior
> The behavior of the DataDiff function has changed
> Arrays must all have a lower bounds of zero
> The index of an HScrollBar or VScrollBar control in a control array could
> not be resolved
> The lower bounds of a collection has changed
> Fixed-length strings that are passed to Win32 API calls must fit inside
> allocated buffer
> Arrays in User Defined Type must be initialized before use
> Some events may be raised when the form is initialized
> Changes to some functions may cause unexpected behavior
> Null has a new behavior
> Some properties and methods have a new behavior
> Some late-bound default property references could not be resolved
>
>
> Miscellaneous
> -------------
> Some members of a structure may need to be initialized before they can be
> used
>
>
> Well, I got a total of 6093 errors and warnings....
>
>
> Also have a look at this:
> http://msdn.microsoft.com/vbasic/previous/2003/downloads/codeadvisor/default.aspx
>
>
>
>
>
> Armin
>
>
>
.


Quantcast