Converting from VB4 to VB6

We have an older application, written in VB4.  It uses Jet 2 as the database portion.  All 16 bit stuff.

We want to move to 32 bit stuff.  How hard?  Is there some "quick and dirty" pkg that would do a lot of the work for us?  I would think most of VB4 is in VB6, so we shouldn't get too many problems there.....

Ideas anyone?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.


As long as you didn't use the old dao syntax (CreateSnapshot, CreateDynaset, etc) you should be able to open the project in Vb6, go to references, change the 2.x reference to 3.5 or 3.6 and move on.  As long as you have the 32 bit OCX version of all the ocx's you are using you'll be fine

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Have you tried just loading the VB4 project into VB6??

It should try to convert all of the references for you... If if can't you will get a blank picturebox where a control could not be converted...

If you are using APIs you will need to go through and replace the 16-bit calls with the 32-bit calls...

yeah I did forget about the API calls.

I did a convert from vb4 to 6 about 2 weeks ago.  It struggled on the DAO reference, but everything else, as long as it is present on the machine, will migrate itself.

dougp23Author Commented:
We may have used old DAO syntax, and we have have used older API calls.  I haven't really started this one yet.  I too was under the impression that VB6 would try to do as much of the conversion as possible.


It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.