I want to know what are differences.
How can we run our Vb6 written code in Vb5 ...
Printable View
I want to know what are differences.
How can we run our Vb6 written code in Vb5 ...
Read this thread
http://www.vbforums.com/showthread.php?t=336870
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
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:Quote:
Originally Posted by Jacob Roman
VB Code:
MultiUse = -1 'True Persistable = 0 'NotPersistable DataBindingBehavior = 0 'vbNone DataSourceBehavior = 0 'vbNone MTSTransactionMode = 0 'NotAnMTSObject End
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.
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.
Quote:
u mean if i will remove.
Retained=0
line form vbp file then it will run in Vb5 ....?
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 thoughQuote:
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.
pete
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.
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.
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.
Wouldn't it make more sense to use a class module instead of a windowless control?Quote:
Originally Posted by Joacim Andersson
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.Quote:
Originally Posted by penagate
Oh I see. I thought it meant code-only. :blush: :D
Quote:
Originally Posted by Jacob Roman
What we have to do for converting modules of Vb6 to Vb5 ..?? ;)
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.