Solved

Upgrading VBX to ActiveX (VB3 to VB 5)

Posted on 1998-09-24
2
247 Views
Last Modified: 2010-04-30
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
Comment
Question by:jorgemiranda
2 Comments
 
LVL 3

Accepted Solution

by:
HATCHET earned 100 total points
ID: 1436408
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
 

Author Comment

by:jorgemiranda
ID: 1436409
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

860 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