• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 784
  • Last Modified:

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?
Doug
0
dougp23
Asked:
dougp23
  • 2
1 Solution
 
anthonycCommented:
Doug,

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
0
 
mcriderCommented:
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...


Good-Luck!
0
 
anthonycCommented:
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.

Anthony
0
 
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.

thanks.

Doug
0

Featured Post

Take Control of Web Hosting For Your Clients

As a web developer or IT admin, successfully managing multiple client accounts can be challenging. In this webinar we will look at the tools provided by Media Temple and Plesk to make managing your clients’ hosting easier.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now