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

Upgrading VBX to ActiveX (VB3 to VB 5)

I'm trying to upgrade an application from VB3 to VB5.
I have already registered all the OCX that replace the VBX used in the VB3 version, but when I try to load the project (VB3 makefile), the load goes fine but at the end I get a message saying 'Can't perform requested operation.'. I thought the problem was the components list so I tried another solution.
I've created a new project, selected the components I needed and then tried to add one form at a time. But then I found another problem, some controls aren't recognized and are replaced by PictureBox, this hapen's with 3DControls (SSPanel, SSFrame,..), MaskedEDit, etc.... I thought this controls would be automatically updated to their new version(OCX) that is already registered in the components window.
Does anybody know how can I solve this problem, which is the best way to upgrade one project from VB3 to VB5?
0
jorgemiranda
Asked:
jorgemiranda
1 Solution
 
HATCHETCommented:
jorgemiranda,

You need to do a few things to make your project work in VB 5 :

1) Start a new project in VB 5
2) Right Click on the Tool Box containing all of the Controls you can use in your project and select "Components..." and find your new .OCX ActiveX Control.  Check it to add it to your project and click OK
3) Create all of your Forms, Modules, etc. all over again and MAKE SURE that the names of all the Forms, Modules, and objects in them such as the TextBoxes, ListBoxes, etc. all have the same names as your project in VB 3
4) Replace the old VBX Controls in your old project with your new ActiveX control in your new one
5) Once you've duplicated all your objects in VB 5, copy the code from your VB 3 project into the appropriate windows of VB 5.  Your code should work fine as long as you've got all the objects across the same as VB 5 is backwards compatable with VB 3 code.
6) Do some double checking and debugging just to make sure the transfer of code went smoothly and correctly and you're good to go!

I know this will take a bit to do, but it's the best way to asure that you've make a good cross-over to VB 5.  If I had to do what you're trying to do, this is what I would do.

Good luck,

HATCHET
0
 
jorgemirandaAuthor Commented:
I acomplished to pass the forms to VB5.
I loaded the from and after that created only the controls that weren't automatically updated.
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

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