|
-
May 1st, 2005, 11:10 AM
#1
Thread Starter
Fanatic Member
What is difference between VB5 and VB6
I want to know what are differences.
How can we run our Vb6 written code in Vb5 ...
-
May 1st, 2005, 11:14 AM
#2
Re: What is difference between VB5 and VB6
-
May 1st, 2005, 11:37 AM
#3
Thread Starter
Fanatic Member
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
-
May 1st, 2005, 11:39 AM
#4
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
 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:
MultiUse = -1 'True
Persistable = 0 'NotPersistable
DataBindingBehavior = 0 'vbNone
DataSourceBehavior = 0 'vbNone
MTSTransactionMode = 0 'NotAnMTSObject
End
-
May 1st, 2005, 11:58 AM
#5
Fanatic Member
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.
-
May 1st, 2005, 12:49 PM
#6
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.
-
May 1st, 2005, 05:48 PM
#7
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
-
May 1st, 2005, 05:59 PM
#8
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.
Last edited by Jacob Roman; May 1st, 2005 at 06:03 PM.
-
May 1st, 2005, 06:36 PM
#9
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.
-
May 1st, 2005, 10:30 PM
#10
Junior Member
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.
-
May 2nd, 2005, 06:39 AM
#11
Re: What is difference between VB5 and VB6
 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?
-
May 2nd, 2005, 06:43 AM
#12
Re: What is difference between VB5 and VB6
 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.
-
May 2nd, 2005, 06:45 AM
#13
Re: What is difference between VB5 and VB6
Oh I see. I thought it meant code-only.
-
May 5th, 2005, 07:49 PM
#14
Thread Starter
Fanatic Member
Re: What is difference between VB5 and VB6
 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:
MultiUse = -1 'True
Persistable = 0 'NotPersistable
DataBindingBehavior = 0 'vbNone
DataSourceBehavior = 0 'vbNone
MTSTransactionMode = 0 'NotAnMTSObject
End
What we have to do for converting modules of Vb6 to Vb5 ..??
-
May 6th, 2005, 11:37 AM
#15
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|