Results 1 to 15 of 15

Thread: What is difference between VB5 and VB6

  1. #1

    Thread Starter
    Fanatic Member vbPoet's Avatar
    Join Date
    Feb 2005
    Location
    Searching ..
    Posts
    669

    What is difference between VB5 and VB6

    I want to know what are differences.
    How can we run our Vb6 written code in Vb5 ...

  2. #2
    Elite Hacker Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,349

    Re: What is difference between VB5 and VB6


  3. #3

    Thread Starter
    Fanatic Member vbPoet's Avatar
    Join Date
    Feb 2005
    Location
    Searching ..
    Posts
    669

    Re: What is difference between VB5 and VB6

    Ok jacob
    u mean if i will remove.
    Retained=0
    line form vbp file then it will run in Vb5 ....?



    But i asked about differences ... Lolz

  4. #4
    Elite Hacker Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,349

    Re: What is difference between VB5 and VB6

    Read the whole thing. There's one post where I mention the differences. Here, it's in Post #14

    Quote Originally Posted by Jacob Roman
    Yes there is very little difference between the two. Just a few more functions that have been added. Class modules now have those annoying 6 lines of code on top. Functions and subs located in class modules are allowed to contain UDT's (User Defined Types), the exe's are a tiny bit bigger (hello world app is 6k on VB5 yet 7k on VB6), and the .vbp file has some extra lines, such as Retained=0, and on rare occasions DebugStartUpOption=0.

    Other than that, they are very similar.
    And here are the annoying 6 lines located on top of class modules in VB6 that cannot be used in VB5:

    VB Code:
    1. MultiUse = -1  'True
    2.   Persistable = 0  'NotPersistable
    3.   DataBindingBehavior = 0  'vbNone
    4.   DataSourceBehavior = 0   'vbNone
    5.   MTSTransactionMode = 0   'NotAnMTSObject
    6. End

  5. #5
    Fanatic Member
    Join Date
    Mar 2002
    Location
    AUSTRALIA
    Posts
    603

    Re: What is difference between VB5 and VB6

    When I changed form VB5 to VB6, the biggest difference I noticed, was ADO.
    It was possible to use ADO with VB5, however VB6 was 'aimed at ADO'
    ====> Before I get flamed from all directions <=========
    I concede for the experiienced programmers it makes little difference, as they could use either version of VB with ADO.
    However for the less experienced (I was once), the fact that VB6's bound controls were intended to bind to ADO, would make a big difference.

    I wouldn't use a bound control now, if my life depended on it. So all those who are of the same ilk, don't flame me.
    Rob C

  6. #6
    PowerPoster BruceG's Avatar
    Join Date
    May 2000
    Location
    New Jersey (USA)
    Posts
    2,657

    Re: What is difference between VB5 and VB6

    VB6 did add a handful of extra string functions such as Split, Replace, InstrRev, etc., as well as a handful of new controls such as the ImageCombo and MonthView.

    Nothing major, but a couple of these "nice to haves" were added.
    "It's cold gin time again ..."

    Check out my website here.

  7. #7
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: What is difference between VB5 and VB6

    u mean if i will remove.
    Retained=0
    line form vbp file then it will run in Vb5 ....?
    VB6 did add a handful of extra string functions such as Split, Replace, InstrRev, etc., as well as a handful of new controls such as the ImageCombo and MonthView.
    you could write a module to replace the functions in vb6 that were not available in vb5, if you really wanted to run the programs in vb5. it would be hard to do if it used controls that are not in vb5 though

    pete

  8. #8
    Elite Hacker Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,349

    Re: What is difference between VB5 and VB6

    Not really. If the user controls exist on the persons computer, regardless of whether its VB5 or VB6, then they are able to use it. Otherwise they would get an error opening the project. ImageCombo and MonthView should be able to show up on VB5, I believe, from your .vbp project file. Otherwise you would need to include it in the toolbox by adding the component that has it.

  9. #9
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: What is difference between VB5 and VB6

    Even though there wasn't a huge update between VB5 and VB6 (not like the one from VB2 to VB3 or from VB4 to VB5) there where some importent enhancements not mentioned earlier in this thread.

    Array enhancements. Functions and properties can return arrays. You can also directly copy one array into another if the left hand side array is a dynamic array.

    Class persistancy. One very good thing that I often use is the ability to persist the state of a class between runs, using the new Content property of the PropertyBag object.

    CallByName. The ability to call methods and public properties by name.

    CreateObject enhancements. You can create objects on a remote computer.

    Custom Data consumers and Data sources. VB6 allows you to create your own custom data consumers and data sources.

    Lightweight UserControls. In VB6 you can create windowless and transparent controls that use much less resources.

    Support for transactions VB6 added the support to specify the transactional behaviour of an object running in MTS.

    IIS and DHTML applications. In VB6 you can create both IIS applications and DHTML applications very easily.

    Some of the above mentioned enhancements are only available in the Pro and Enterprise versions of VB6.

  10. #10
    Junior Member Jethro Tull's Avatar
    Join Date
    May 2005
    Location
    Buenos Aires - Argentina
    Posts
    31

    Re: What is difference between VB5 and VB6

    I have used a little of VB4, buyed a book of VB5, but acquired VB6.

    When I try the examples of the book, everything works, but, if I'm programming in "VB5" over VB6, I'm sure I'm missing something. What's the big difference between 5 and 6?

    I think Microsoft must be a good reason to make a new version, but what I see is a small upgrade.

  11. #11
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: What is difference between VB5 and VB6

    Quote Originally Posted by Joacim Andersson
    Lightweight UserControls. In VB6 you can create windowless and transparent controls that use much less resources.
    Wouldn't it make more sense to use a class module instead of a windowless control?

  12. #12
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: What is difference between VB5 and VB6

    Quote Originally Posted by penagate
    Wouldn't it make more sense to use a class module instead of a windowless control?
    Have you ever used a Label or an Image control? They are windowless. Windowless doesn't mean that they don't have a visual interface, but they don't have a containing window. VB will draw the control directly on the Form instead.

  13. #13
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: What is difference between VB5 and VB6

    Oh I see. I thought it meant code-only.

  14. #14

    Thread Starter
    Fanatic Member vbPoet's Avatar
    Join Date
    Feb 2005
    Location
    Searching ..
    Posts
    669

    Re: What is difference between VB5 and VB6

    Quote Originally Posted by Jacob Roman
    Read the whole thing. There's one post where I mention the differences. Here, it's in Post #14



    And here are the annoying 6 lines located on top of class modules in VB6 that cannot be used in VB5:

    VB Code:
    1. MultiUse = -1  'True
    2.   Persistable = 0  'NotPersistable
    3.   DataBindingBehavior = 0  'vbNone
    4.   DataSourceBehavior = 0   'vbNone
    5.   MTSTransactionMode = 0   'NotAnMTSObject
    6. End



    What we have to do for converting modules of Vb6 to Vb5 ..??

  15. #15
    Elite Hacker Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,349

    Re: What is difference between VB5 and VB6

    nothing, they can be the same, unless they contain those new built in functions, such as Split, Join, InStrRev, etc. It's the class modules that made a difference, not regular modules.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width