Solved

Converting VB4 to VB5

Posted on 1997-10-08
7
283 Views
Last Modified: 2011-04-14
What is the best way convert a VB4 project to a VB5
project

0
Comment
Question by:jaalex
[X]
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
7 Comments
 
LVL 5

Expert Comment

by:dirtdart
ID: 1436995
Make sure both VB4 and VB5 are installed on your machine, because there are a couple of custom controls that ship with VB4 and don't ship with VB5.  Then just load the program into VB5.  The conversion is automatic.
0
 

Author Comment

by:jaalex
ID: 1436996
I tried this but all the forms don't seem to show up.

I seem to remember software that did the conversion being
shown here a while back.  Does anyone know
anything about that

0
 
LVL 3

Expert Comment

by:rmichels
ID: 1436997
installing VB4 AND VB5 on your PC is not a good idea.  We have run into many problems.  The only way to get around them was to make sure one de-installed VB4 before installing VB5
0
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!

 
LVL 9

Accepted Solution

by:
cymbolic earned 100 total points
ID: 1436998
Here's the conversion process: You bring the project up in VB5, and save it.  It's a oneway trip.  Without a lot of futzing around on the form with notepad, once it's saved in VB5, VB4 won't read your forms.  The only additional thing you need to do is change your references to the newer versions, i.e., DAO 3.5 for jet, RDO 2.0 for RDO, so you get the stuff with all the hidden bug fixes in it. Let me tell you, they did fix a lot more things and stopped up some grevious memory leaks in RDO.

Let me modify rmichels statement a bit.  He's right, if you are not careful, installing both VB4 and Vb5 can cause you problems.  You can get away with this, but you have to be very careful about where you place your controls, etc, because VB5 will eat some of your VB4 controls.  It's sort of like making love to a porcupine, you gotta be VERY CAREFUL!

Other than that, if you can't bring a form up in VB5, you just might not be able to bring it up in VB4 either.  If they are in your project file (you should check it out) then at least they should try to load, even if you get load errors.  If there is no attempt to load, your project (.vbp) file is probably honked.
0
 
LVL 5

Expert Comment

by:dirtdart
ID: 1436999
So why is it when cymbolic gives the same answer I do, its accepted?
0
 

Author Comment

by:jaalex
ID: 1437000
To Dirtdart

Becasue you gave me bad information.  You told me to leave
Visual Basic 4 on my compter.  Which I already knew would be bad.
That is why I rejected you answer
0
 
LVL 5

Expert Comment

by:dirtdart
ID: 1437001
Don't see how it's bad since I have VB4 and VB5 installed on my machine and they work beautifully together.  I've heard some things about people having problems, but if you install everything correctly and don't try to put 4 and 5 into the same directory, you have no problems.  Plus it's essential if you are converting projects using some controls shipped with 4 as they don't appear in 5.  If you don't, you'll lose these controls in your projects.
0

Featured Post

Get HTML5 Certified

Want to be a web developer? You'll need to know HTML. Prepare for HTML5 certification by enrolling in July's Course of the Month! It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses
Course of the Month10 days, 21 hours left to enroll

632 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