Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Upgrade VB5 to VB6

Posted on 2002-07-16
Medium Priority
Last Modified: 2011-09-20
I have a developed VB5 system and i would like to upgrade it into VB6 version. What r the special things i need to do for the upgrading process???
Question by:Kelvsat
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Expert Comment

ID: 7158730

Most of the code should upgrade without any issues.
However, if you are using DAO or ODBC in VB5, you might want to consider changing to ADO. This is not required for the conversion, but could extend the 'life' of your project as ADO is now the supported data access method from MS.

I've converted several projects - large and small and have had no issues at all with the conversion.

LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 7158797
I had some "trouble" with some of the components (ms windows controls), where the library name had changed, but a simply "find/replace" solved that issue. unfortunately, I don't remember the exact names any longer...
LVL 53

Expert Comment

by:Ryan Chong
ID: 7158810
Here is my suggestion:

After installed/ upgrade the VB5 to VB6, try open your vb project, go to Tools > References, check if some of the dll/ocx is missing.

Another method to see if your application is compatible in VB6 environment is try to run your program in a pure VB6 installed machine (No VB5 installed previously). Always See if some References is missing or not.

You may also find that some of the dll in References is missing, then try find out the greater version of dll in References.
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.


Accepted Solution

AlonHirsch earned 400 total points
ID: 7158854

I know that the Microsoft Common Controls libraries have changed names from VB5 to VB6.
The references used to be COMCTLib and MSComCTL
and are now MSComCTLib and MSComCtl2 respectively.
As Angel says : a simple search and replace takes care of that.

LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 7158858
AlonHirsch, thanks for this clarification...
Note that the library name is used in the events of these controls by default, but could also be used explicitely.
LVL 22

Expert Comment

ID: 7160089
The code in your project is 100% compatible with VB6.  To prove this, open a VB6 module/form in a text editor and see what version is referenced: VB5.

The only other issue is your object references, which will generally work exactly the same, although upgrades are available for some of them, as mentioned in some of the above comments.

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question